WordPress.org

Ready to get started?Download WordPress

Forums

Admired
Allign secondary menu (5 posts)

  1. Helmke
    Member
    Posted 1 year ago #

    How can I align the secondary menu at the top of the theme with the primary menu just under the header?

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Are you familiar with CSS?
    Are you using a Child Theme, or Custom CSS/Styles plugin?

  3. Helmke
    Member
    Posted 1 year ago #

    Hi thank you for your help

    I am not really familiar with CSS. I have hacked the Admired theme by trial and error until I got the author and post dates to disappear. Here is my link: http://wireless-cctv.co.za/

    Now I would like to center the top nav links. Is there a way just to ad custom CSS code?

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    It's not going to be simple to do that--especially because your theme is responsive. Generally, setting a width and then using "margin: 0 auto;" is the way to center block elements -- but then you'll have background issues.

    Adding padding-left: 10%; to this code:

    #nav-menu {
        background: none repeat scroll 0 0 rgba(0, 0, 0, 0.3);
        display: block;
        float: left;
        margin: 0 auto;
        width: 100%;
        padding-left: 10%;
    }

    helps a bit -- but it's not perfect when the screen size changes...

  5. Helmke
    Member
    Posted 1 year ago #

    Thank you :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic