• Hi, I am having trouble with where the sub-nav menu appears in the Yoko theme. When you roll over the main heading the menu appears but there is a gap of about 10pixels between the main header and the actual sub menu. How can I adjust this in the css file?
    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Please provide a link to your site so we can help.

    Thread Starter SaveVernazza

    (@savevernazza)

    Hi Christine,
    Here is the link:
    http://www.savevernazza.com. However I have the drop down menu deactivated because of the problem. I do have a link to a screenshot showing the problem:
    http://www.whycomply.com/example.jpg

    Thanks for the help.

    The position of the subnav is set here:

    #branding #mainnav ul ul {
    	display: none;
    	float: left;
    	position: absolute;
    	top: 2em;
    	left: 0;
    	z-index: 99999;
    }

    You’ll need to change top:2em to something else.
    I would try top:10px and see what that does, then go from there.

    Thread Starter SaveVernazza

    (@savevernazza)

    Thanks Christine. Worked perfectly! I do have one further question. If I wanted to bold none item in the menu, say the donate button, how would I go about doing that? Thanks.

    Thread Starter SaveVernazza

    (@savevernazza)

    Hi Christine,
    One problem I am having on some of the pages the sub menu is showing up behind the header photo. I did some z-index changes but to no avail. Here is the link:
    http://www.savevernazza.com.

    Thanks.

    If you take a look at the source code, you can see that WordPress has added classes and id to individual links. The Donate link has an id of menu-item-376.

    So you could add something like –

    #branding #mainnav ul li#menu-item-376 a {font-weight:bold;}

    With regards to the sub-menu z-index position, it seems a bit odd. I looked but can’t see it appearing behind the image. This is usually fixed by doing what you just did, which is give it a high z-index value.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Yoko Sub nav’ is closed to new replies.