[resolved] center navigation bar and add horizontal rule (7 posts)

  1. schaeffergames
    Posted 3 years ago #

    I have been trying to center the navigation bar but so far nothing has worked. Any insight you can give would be appreciated

  2. schaeffergames
    Posted 3 years ago #

    anyone? I could use some help locating which css selectors to target. I have been looking for the #nav div and have come up empty. and help would be greatly appreciated.

  3. WPyogi
    Forum Moderator
    Posted 3 years ago #

    Posting a link to your site will make it much easier for people to help you :).

  4. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    Centring nav menus has been asked and answered many times before;

    Try using a browser developer tool for this kind of exploratory CSS work.
    I use Google Chrome's built-in Developer Tool because I find it particularly easy to use.

    Alternatively, ask general CSS forums;

    Now that you know the style, from being exposed/added by the Developer Tool, you can add a new style to override it.

    You ought to add new styles externally, not within the theme's files. Changes to the theme's files will compromise the theme and be compromised when the theme updates.

    External changes can be made using a Child Theme or through a plugin that provides Custom CSS functionality.

  5. schaeffergames
    Posted 3 years ago #

    Thank you Andrew. All of your suggestions are great except for one thing. None of the apply to the Mantra theme.

    I have used Firefox's web developer tools and keep coming up empty . I hav a general idea of how CSS works but this is VERY involved.

    I have searched until I am blue in the face. I don't want anyone to do my work for me but can someone please just give a better roadmap.

  6. WPyogi
    Forum Moderator
    Posted 3 years ago #

    To be more specific with what I said above, without a link to your site, it is very difficult to help with CSS questions. Centering a menu is completely theme and site specific - but the general concepts in the threads linked above apply -- the specific depend on your site. So posting a link is necessary if you want specific help.

  7. CryoutCreations
    Theme Author

    Posted 3 years ago #

    This question is answered in the Mantra FAQs - question C23

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.