Is there a way to override the nectar helpers? In particular /salient/nectar/helpers/nav-menus.php
I have tried recreating the file and folder structure in my child theme but it doesn't work. Specifically I want to change the drop down arrows from angle down to caret down.
You can add those functions inside /salient/nectar/helpers/nav-menus.php directly to the Theme "functions.php" files with the edits and it should override it.
Just for the record I would probably advise people that ask questions like this in the future to create a separate file for the function, then require it in functions.php rather than filling functions with hundreds of lines of code. Easier to reason about and track, especially if they are changing a lot of these helpers
ie:
//Change menu dropdown icons require_once(get_stylesheet_directory() . '/dura-library/menu.php');
Is there a way to override the nectar helpers? In particular /salient/nectar/helpers/nav-menus.php
I have tried recreating the file and folder structure in my child theme but it doesn't work. Specifically I want to change the drop down arrows from angle down to caret down.
Hey Again,
You can add those functions inside /salient/nectar/helpers/nav-menus.php directly to the Theme "functions.php" files with the edits and it should override it.
Thanks
ThemeNectar Support Team
Thanks Tahir,
Just for the record I would probably advise people that ask questions like this in the future to create a separate file for the function, then require it in functions.php rather than filling functions with hundreds of lines of code. Easier to reason about and track, especially if they are changing a lot of these helpers
ie:
//Change menu dropdown icons
require_once(get_stylesheet_directory() . '/dura-library/menu.php');
Thanks for your valuable input.
Thanks
ThemeNectar Support Team