WordPress.org

Forums

Epic
How to align the menu to center (4 posts)

  1. Novarac
    Member
    Posted 1 year ago #

    Hello there,
    I have a problem with Epic theme ( free version ) I want to put my menu that is aligned to the right , I want it to be aligned at center, in which part of css.style should I change the code ? I know it is somewhere in primary navigation tried it already but it wont work.

    Would be awesome if someone could help out!

  2. Hey. You shouldn't make any changes directly to your theme's CSS file as this will cause you to lose your changes when updating the theme in the future. Instead you should either create a child theme or install a custom CSS plugin.

    In your child theme's style.css file or your custom CSS plugin's editor, add the following snippet in order to center your menu:

    .primary-nav {
    text-align: center;
    }
    
    .primary-nav ul {
    display: inline-block;
    }

    Hope that helps. :)

  3. Slocum Themes
    Member
    Theme Author

    Posted 1 year ago #

    Hi Novarac,

    Please try adding the following in a Child Theme:

    .primary-nav-container {
         text-align: center;
    }
    
    nav .primary-nav {
         width: auto;
    }

    @Siobhan Thanks for responding. You are absolutely correct about child themes. Unfortunately, we tested your code and were not able to center the navigation.

    Thank You

  4. Slocum Themes
    Member
    Theme Author

    Posted 1 year ago #

    Hi Novarac,

    Just wondering if you had any luck with the above code snippets?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.