• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Trouble creating header.php in Focus theme

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Trouble creating header.php in Focus theme

This topic is: resolved

Tagged: Focus header.php !important

  • This topic has 1 reply, 1 voice, and was last updated 11 years, 11 months ago by skstudio.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 5, 2014 at 11:12 pm #93622
    skstudio
    Member

    There is an !important the Genesis/lib/structure/header.php file that I want to remove from the file. I copied the header.php file straight over to the Focus child theme. I got this error without making any changes to the header.php file that I added to the Focus child: Fatal error: Cannot redeclare genesis_do_doctype() (previously declared in /home2/devhg/public_html/claire01/wp-content/themes/genesis/lib/structure/header.php:33) in /home2/devhg/public_html/claire01/wp-content/themes/focus/header.php on line 38

    How can I get the header.php in the Focus child to work so I can keep my change whenever there is a Genesis update?

    Thanks so much for your help.

    March 6, 2014 at 1:38 am #93630
    skstudio
    Member

    I solved my issue with the following:
    - Using this link as a clue, I added code to the functions.php file: http://www.studiopress.community/topic/genesis-2-0-custom-header-problem-fix/ (thanks so much for this post)
    - I took out the !important in the code that was added to the functions.php file. I was taking the !important out of the .site-title background area.
    - Made sure that the curly quotes were straight quotes. There are single quotes and double quotes that you have to replace.
    - I found I had to make sure the line: $output = ''; was actually $output=' '; there needed be a space between the single quotes,
    - I had to add !important in the style.css .site-header background... to override the inline code.

    I think I listed all the changes that I did to achieve my goal.

    Hope this helps if someone runs into this.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Trouble creating header.php in Focus theme’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble