Your address will show here +12 34 56 78

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.

  • Author
    Posts
  • #108364

    Anna
    Keymaster

    How to add these files in child theme:

    lib/property.php
    js/admin-control.js
    libs/listing_functions.php

    js/admin-control.js

    – 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.)

    Thanks

    EXTRA HELP – http://code.tutsplus.com/articles/how-to-modify-the-parent-theme-behavior-within-the-child-theme–wp-31006

    • This topic was modified 2 years, 4 months ago by  Anna.
    • This topic was modified 2 years, 3 months ago by  Anna.

You must be logged in to reply to this topic.