• 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

Eleven40 Pro Heder image and nav color

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 › Eleven40 Pro Heder image and nav color

This topic is: not resolved

Tagged: header image

  • This topic has 7 replies, 3 voices, and was last updated 8 years, 11 months ago by brock.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • June 20, 2016 at 11:48 pm #187906
    nathanj1023
    Member

    Hello - been working tonight on trying to migrate my site to Genesis theme.

    2 questions:

    1. How can I change the color of the sticky site header?

    2. I'd like to add a sitewide banner below the sticky header. I've googled and successfully removed the site tag from the theme that used to be below the header, but am having trouble getting an image plugged in in it's place. Any help would be greatly appreciated!

    site: http://betterbibleteachers.com/

    thanks

    http://betterbibleteachers.com/
    June 21, 2016 at 12:24 am #187910
    William
    Member

    #1

    .site-header {
        background-color: grey;
    }

    #2

    Register a widget area, and hook it using "genesis_after_header" 🙂


    Genesis Customization Service | Quick fixes whenever you need them ! | Contact me at Fixmysite.com !

    June 21, 2016 at 12:48 am #187914
    brock
    Member

    Hey,

    You can change the color of the header by finding this selector in your style.css file:

    .site-header {
    background-color: yourcolor;
    }

    As for adding a site-wide banner, you could add this in your functions.php:

    
    //* Hooks a sitewide banner before the header
    add_action( 'genesis_after_header', 'bc_site_wide_banner');
    function bc_site_wide_banner() { ?>
    <div class="site-wide-banner"><img src="YOUR IMAGE HERE" alt="this describes the picture"></div>
    <?php } ?>
    
    Note: Watch out for those closing php tags. Try adding the snippet to the end of your functions.php file so you don't get any errors.

    And some basic styling for the site wide banner to your style.css file:

    
    /* Site Wide Banner */
    .site-wide-banner > img {
    	height: 300px;
    	width: 100%;
    }

    You can adjust the values according to how you want your image to display. This will create a banner that goes the full width of the page.

    June 21, 2016 at 12:56 am #187915
    brock
    Member

    William and I responded at the same time, but if you don't know how to add a widget area (I'm guessing you don't) then this might be helpful. Adding a widget would probably be neater but this will work too. Good luck.

    June 21, 2016 at 9:30 am #187950
    nathanj1023
    Member

    Thank you William and Brock. And Brock - thanks for the detailed code snippets. You are correct in assuming that I ain't no code head 🙂

    I am going to try this tonight and see how it goes.

    I should have added this to my original question..but how hard is it to also back that banner image a link?

    thanks again

    June 22, 2016 at 9:33 pm #188084
    nathanj1023
    Member

    getting close...

    http://betterbibleteachers.com/

    can you help me get it centered, help is scale down proportionally when the browser winder gets smaller and add a link to the image?

    thanks

    June 22, 2016 at 9:37 pm #188085
    nathanj1023
    Member

    also...I'd prefer the header not show on other page templates, like this one:

    http://betterbibleteachers.com/take-a-load-off-save-oodles-of-time-delegate-curriculum-to-me/

    June 23, 2016 at 12:20 am #188093
    brock
    Member

    Sorry for the delayed reply. If I were you I would replace the banner image on mobile screens. Honestly, this has enough detail that I almost want to recommend you hire someone for a one-off customization job. But go ahead and try replacing the code I gave you with this...

    functions.php:

    
    //* Hooks a sitewide banner after the header
    add_action( 'genesis_after_header', 'bc_site_wide_banner');
    function bc_site_wide_banner() { 
        if ( is_page('1375') ) {
            return;
        }
    ?>
    <div class="site-wide-banner wrap"><a href="GO HERE WHEN CLICKED"><img src="YOUR IMAGE HERE" alt="this describes the picture --> escape you\'re quotations"></a></div>
    <?php } ?>
    

    css:

    
    .site-wide-banner > img {
        text-align: center;
        margin: probably add some;
    }
    
    @media screen and (max-width: 750px) {
        .site-wide-banner {
            display: none;
        }
    }
    

    Note that this is hiding the image at 750 pixels. This is the stop-gap solution I recommend until you create another image to replace it on smaller screens. Also, note that the banner is hidden on that page you specified. You said other templates but only provided the one. A site wide banner generally means being every page on the site. Best of luck.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 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