WordPress.org

Support

Support » Plugins and Hacks » Hacks » [Resolved] removing blocked right-hand area over menu nav in 2011

[Resolved] removing blocked right-hand area over menu nav in 2011

  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael
    Moderator

    @alchymyth

    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.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] removing blocked right-hand area over menu nav in 2011’ is closed to new replies.