Home>Support>Add an ’empty’ transparent bar above menu

Add an ’empty’ transparent bar above menu

By Rhys, 8 years ago. Last reply by Greg Priday, 8 years ago.

Hi,

Take a look at http://www.leicscollaborativefamilylaw.com/

I have managed to add an empty bar with the background colour below the navigation bar (I achieved this by modifying the header in a child theme)

However I would also like to add the same bar above the navigation. I tried this modifying the masthead.php however it didn’t work.

I would appreciate any assistance with this. If both can be achieved using CSS (rather than modifying the theme files) then that would be preferable.

An example of the desired end result can be found here http://www.resolution.org.uk/Leicestershire/

Many thanks

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 9 months ago Greg Priday
    Hi, I Work Here

    Hi Rhys,

    I’ve had a chat with our customization team and we’re not quite following yet. If the new bar above the menu is transparent and empty, what would you be adding it for? Do you want to add spacing above the existing menu?

  2. 8 years, 9 months ago Rhys

    Apologies, I realised I didn’t explain myself very well. I’m trying to achieve the look in the image below. Effectively a transparent separator between the header and the navigation. Does this help clarify?

    lcflg

    thank you

  3. 8 years, 9 months ago Greg Priday
    Hi, I Work Here

    Hi Rhys

    Can you give the following CSS a try. It should do the trick.

    #masthead {
        background: transparent;
        padding: 0;
    }
    
    #masthead .hgroup {
        background: #fcfcfc;
        margin-bottom: 19px;
        padding-right: 35px;
        padding-left: 35px;
    }
    
    .main-navigation {
        margin: 0;
    }
    
  4. 8 years, 9 months ago Rhys

    Excellent! Works great. Thank you very much Greg :-)

  5. 8 years, 9 months ago Greg Priday
    Hi, I Work Here

    Fantastic! It’s an absolute pleasure.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More