WordPress.org

Forums

[resolved] removing blocked right-hand area over menu nav in 2011 (3 posts)

  1. 5high
    Member
    Posted 2 years ago #

    Hi,
    I'm trying to make a 2011 child theme, but have had a few issues with the right-hand area of the main horizontal nav bar being 'blocked' by something, even after completely removing the 'searchform' (by copying searchform.php to the child theme and then emptying it - see my original Q: question )

    However, by chance, I spotted this code under branding in the 2011 style.css:

    #branding .only-search + #access div {
    	padding-right: 205px;
    }

    which seemed to have a HUGE amount of right-hand padding & in the #access div... so I've added the code (below) into my Child theme style.css:

    /*
    to eliminate blocked space in main menu nav bar from searchform in header
    */
    #branding .only-search + #access div {
    	padding-right: 0px;
    }

    which has solved the problem!!!

    BUT I'm not certain whether it will ONLY effect the right padding in the main nav area, rather than anything to do with a search page or something else??
    Can anyone help with this??
    Thanks.

  2. BUT I'm not certain whether it will ONLY effect the right padding in the main nav area

    that is right - no side effects to expect.

  3. 5high
    Member
    Posted 2 years ago #

    Brilliant - thanks for that - I can sleep at night now!
    Cheers alchymyth.

Topic Closed

This topic has been closed to new replies.

About this Topic