• 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

Remove box from behind topnav bar

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 › Design Tips and Tricks › Remove box from behind topnav bar

This topic is: resolved

Tagged: header, navigation, topnav

  • This topic has 14 replies, 4 voices, and was last updated 12 years, 9 months ago by Susan Nelson.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • April 28, 2013 at 5:21 am #38181
    samantha
    Member

    Hi, I'm using the Freelance theme. I have removed the topnav bar by adding the following code to style.css:

    /* Hide Navigation Menu in home page*/
    .home #topnav {
    display:none;
    }

    This has removed the text but still left behind a black box that covers the site title. Can anyone tell me how to remove it?

    Thanks!

    April 28, 2013 at 5:35 am #38182
    wmwebdes
    Member

    Link to your site please Samantha.

    April 28, 2013 at 5:39 am #38183
    samantha
    Member

    site is http://www.tyingvines.org

    April 28, 2013 at 5:43 am #38184
    wmwebdes
    Member

    Get the message...
    "Tying Vines
    ...will be back shortly"

    April 28, 2013 at 5:47 am #38185
    samantha
    Member

    Sorry, I was asked to put that up whilst changing code. I have removed it now.

    April 28, 2013 at 6:14 am #38187
    wmwebdes
    Member

    Have you sorted it Samantha - looks OK this end?

    April 28, 2013 at 6:24 am #38189
    samantha
    Member

    No, haven't sorted it. I am using Chrome on  a Mac. I have tried using Firebug Lite to identify what it is but can't figure it out. Is there any way to upload a screenshot to the forum?

    April 28, 2013 at 6:46 am #38194
    wmwebdes
    Member

    I added a top margin as shown below, try that

    #header {
    width: 960px;
    height: 110px;
    margin: 35px auto 0;
    padding: 0;
    }

    April 28, 2013 at 7:01 am #38197
    samantha
    Member

    The black box is still there, but it did move the site title and description down below the box which looks better than when the box was over the top of the title/description text.

    Ideally I'd still like to remove that black strip from the top of the page altogether. Any ideas?

    Thanks for your help. So much to learn... sigh.

    April 28, 2013 at 7:21 am #38201
    Susan Nelson
    Participant

    That box across the top of the page is actually part of the whole background image (as seen here). To remove it, you'll need to recreate the background image - maybe just crop that part off depending upon what you want to do with the design.

    April 28, 2013 at 7:24 am #38203
    samantha
    Member

    Thanks, Susan. Will try that tomorrow.

    April 28, 2013 at 7:50 am #38205
    frobn
    Member

    I think the freelance theme an Add topnav section function

    Edit functions.php and remove it.

    p.s. it is best to make a backup of the functions.php and edit through the cpanel or ftp

    April 28, 2013 at 8:02 am #38211
    wmwebdes
    Member

    Samantha
    As Susan points out, the top black section is part of the background image from this section of CSS:

    body {
    background: #CCCCCC url(images/bg.png) repeat-x;
    color: #333333;
    font-size: 14px;
    font-family: Georgia, Times New Roman, Trebuchet MS;
    margin: 0 auto 0;
    padding: 0;
    line-height: 24px;
    }

    The image has a black top section and then a gray gradient below.
    If you remove the image part from the CSS you will be left with a gray backgrounf of colour #CCCCCC

    Or as Susan mentioned you could crop the black top section from the image and upload - make sure you keep a copy of the original image.

    Looks as though you are about there.

    April 29, 2013 at 5:22 am #38383
    samantha
    Member

    frobn, I did find that later and had done as you suggested. Much tidier!

    Thanks very much wwemdes & Susan - it's now just right 🙂

    I changed the code to:

    body {
    background: #FFFFFF repeat-x;
    color: #333333;
    font-size: 14px;
    font-family: Georgia, Times New Roman, Trebuchet MS;
    margin: 0 auto 0;
    padding: 0;
    line-height: 24px;
    }

    Thanks again.

    April 29, 2013 at 5:24 am #38384
    Susan Nelson
    Participant

    Glad I could help!

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 15 total)
  • The forum ‘Design Tips and Tricks’ 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

© 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