Home › Forums › WP RESIDENCE – Real Estate WordPress Theme FORUM › How to add certain files from libs folder to child theme
This topic contains 0 replies, has 1 voice, and was last updated by Anna 2 years, 4 months ago.
How to add these files in child theme:
– You need dequeue the script and enqueue again: see these instructions https://codex.wordpress.org/Function_Reference/wp_dequeue_script and https://codex.wordpress.org/Function_Reference/wp_…
enqueue of the file happens in css_js_include.php
for the files in lib folder you don’t need to override- just need to redeclare the functions
all the functions in there should begin with something like
if( !function_exists('wpestate_create_property_type') ):
That means if you declare the function in child theme wordpress will not consider the re declaration on the core theme and will consider only the function in the child theme.
Put the new functions in functions.php in child theme (functions.php does not over write the original functions.php – but he will be append to it.)
EXTRA HELP – http://code.tutsplus.com/articles/how-to-modify-the-parent-theme-behavior-within-the-child-theme–wp-31006
You must be logged in to reply to this topic.