• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

Header Background Question

Home › Community Forums › Optimal Theme Support › Header Background Question

Tagged: theme header

  • This topic has 1 reply, 2 voices, and was last updated 10 years ago by Wes.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 29, 2013 at 5:02 pm #2663
    futurewebboss
    Customer

    Hey Wes,

    On this page http://www.studiopress.com/support/showthread.php?t=86885&highlight=header+background and it worked great for the legacy theme but not the optimal theme, which is the one I think I’ll end up using.

     

    This bit of code is shown for a full header wrap – First add the following to functions.php
    /** Before Header Wrap */
    add_action(‘genesis_before_header’, ‘before_header_wrap’);
    function before_header_wrap() {
    echo ‘<div class=”head-wrap”>’;
    }

    /** After Header Wrap */
    add_action(‘genesis_after_header’, ‘before_after_wrap’);
    function before_after_wrap() {
    echo ‘</div>’;
    }

    Then add to style.css
    .head-wrap {
    background: #d2d1d0;
    }

    January 29, 2013 at 9:21 pm #2665
    Wes
    Moderator

    You actually wouldn’t need to add the above code to the Optimal theme because its already in your functions.php file. If you need to change the header background, in this case you would need to look for and change “.head-wrap” in your style.css file

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2023 · Appfinite · Built With The Genesis Framework