Support » Theme: Page Builder Framework » Child theme header.php is not overwriting

  • Basically, what’s happening is that I have downloaded the child theme from your site. Made edits to the child theme by copying the parent theme header over to the child theme then making edits in the child theme header file. These changes do not show on the front end even after clearing caches etc.

    I then tried to edit the parent theme header.php file just to see and again those edits are not showing in the source code. What’s happening?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author David Vongries


    Hi @gavpedz,

    there are 2 header.php files in the theme. One is in the parent theme folder – and the other (that acutally contains the main header content) is located under inc -> template-parts -> header.php.

    Please copy the latter to inc -> template-parts in your child-theme to override the parent theme’s header.

    That should do the trick 🙂


    Thanks but it’s still not showing in the source code. the only way I can get what I want to actually parse and show in the source code is by adding it via the functions file.

    function add_to_my_header() { ?>
    my custom header info.
    add_action( ‘wp_head’, ‘add_to_my_header’ );

    • This reply was modified 1 year, 2 months ago by gavpedz.
    Theme Author David Vongries


    That’s odd. It works fine for me the way I explained above.

    What exactly are you trying to achieve?

    You can use the wpbf_before_header or wpbf_after_header hook to add content before/after the theme’s header instead of using wp_head.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Child theme header.php is not overwriting’ is closed to new replies.