Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #99005
    BrandonSM
    Participant

    Hello! I’m looking to make a child theme and overwrite the /inc/catchbase-structure.php file to include a couple more divs in various places but I cannot figure out how to do it. Mimicing the directory structure and placing the overwritten file does not work.

    How can I accomplish this?

    #99032
    Mahesh
    Participant

    @brandonsm: Hmmm its kinda tricky to overwrite the whole file with the child theme. What you can do instead is simply figure out the functions where you want to include more divs then copy that exact function to your child theme’s functions.php and modify as desired. It works fine without any problem.
    Let me know further if you need any help.
    Note: Make sure you copy the function only not if ( ! function_exists( 'catchbase_page_end' ) ) : part.

    Regards,
    Mahesh

    #99074
    BrandonSM
    Participant

    Thank you Mahesh!

    After doing a little more reading I was able to replace the “if” statement in the child functions file with the modified code and it worked.

    Thanks!

    #99137
    Mahesh
    Participant

    @brandonsm: I’m glad you worked it out. Have a nice day!

    Regards,
    Mahesh

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Overwrite inc/catchbase-structure.php’ is closed to new replies.