[Resolved] Easiest full-width bar across top of header?

Home Forums Support [Resolved] Easiest full-width bar across top of header?

Home Forums Support Easiest full-width bar across top of header?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6072
    Dee Broughton

    I have all the addons. I’m looking for the easiest way to add a narrow band of full-width color across the top of the header. I could, of course, just add that color to the header, but I’d rather not do that and I need it not to interfere with the header widget area. I want the bar visually to resemble the same look the page has when we’re logged in to WP and working, but it doesn’t need to be functional, just aesthetic. I’m sure it must be easy. Can you suggest something?

    #6073
    Tom
    Lead Developer
    Lead Developer

    Hi Dee,

    I would use GP hooks.

    Go to “Appearance > GP Hooks” and look for the Before Header hook.

    In there, I would add something like this:

    <div class="fluid-header-area">
    Stuff in here if need be..
    </div>

    Then add this CSS:

    .fluid-header-area {background: #222;min-height: 30px;}

    Of course you can change the background and remove or change the min height.

    Let me know if this helps πŸ™‚
    Tom

    #6074
    Dee Broughton

    Awwwwwwww, I <3 Tom. Thanks. I only vaguely understand how hooks work, and yet, with your instructions, I did it. Thanks tons.

    #6075
    Tom
    Lead Developer
    Lead Developer

    Happy to help! πŸ™‚

    Tom

    #6758
    Dee Broughton

    Site’s done. My first with GeneratePress. Liking it very much. http://www.dbepub.com/ Thanks tons.

    #6759
    Tom
    Lead Developer
    Lead Developer

    Love it! Great job πŸ™‚

    Tom

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.