• Hello. I’m wondering why my Child-themes content-extensions.php don’t override interfaces content-extensions.php. I have made a copy of the folder and pasted it in my Child-theme. Is there anything else needed to be done to override a file in the theme?

    Regards
    ZnappHane

Viewing 2 replies - 1 through 2 (of 2 total)
  • I was wondering the same. I’m trying to change something in header-extensions.php and want to do it in a child theme instead of parent theme. Just replication folder structure and creating file with the same filename doesn’t do anything.

    Please help!

    i think content-extensions.php and header-extensions.php are no wordpress templates and therefore you won’t be able to overwrite them via wordpress template hierarchy loading, by replicating the folder structure and files …

    they are just general include files …

    if the functions in those files are created via

    if ( ! function_exists( ‘some_function’ ) ) :

    function some_function(){}

    endif;

    you can define the function in your child theme and declare the function first, so it then won’t get declared in the parent theme

    if this is not possible you can look for some do_action() calls in the function and then modify via add_action()

    if all this is no option, then you simply have to modify the functions in the parent theme and do this after each theme udate ;-(

    or ask the theme developers to add some function_exists and/or do_action calls to the functions you wish to modify ??

    hope this helps & all the best
    greetings
    becki

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘My childs content-extensions don't override’ is closed to new replies.