• Resolved ulrichnielsen

    (@ulrichnielsen)


    Hi,

    I copied the header.php to my child theme to do a minor modification but it returns the following error message:

    Fatal error: Cannot redeclare generate_reorder_inline_site_branding() (previously declared in \wp-content\themes\generatepress\inc\structure\header.php:254)

    This happens with no modification whatsoever. Apparently the problem is that all those functions can only be declared once, and WP still pulls the header.php from the parent GP theme even if there’s one in the child theme.

    Is there a way to add a custom header.php? All I want is to insert a div without using the block editor.

    Thanks in advance.

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