Okay
  Public Ticket #157020
Rewrite functions in child theme
Closed

Comments

  • Hugo started the conversation
    Hello ThemeNectar, i would like to ask you the best way to i rewrite some functions from the Salient Parent theme. The best practice in Wordpress is use the " if (!function_exists('nectar_register_js')) { " in Parent, and redeclare the function in child theme. But this implicates that i have to alter the functions.php file from Parent theme. Is there a way to avoid this ? My goal is to register a altered version of init.js file that is located in Child Theme and use it instead of the init.js that is included in Parent Theme. Regards, HB.
  •  1,043
    ThemeNectar replied

    Hey Hugo!

    Here's a ticket on how to enqueue the init.js from a child theme: http://themenectar.ticksy.com/ticket/136919/search/

    Cheers :)

  • Hugo replied

    Thank you Phil.