WordPress.org

Ready to get started?Download WordPress

Forums

Center Navigation Links in Magazine Basic theme (5 posts)

  1. sfowler2
    Member
    Posted 6 months ago #

    Hi,

    I'm not too familiar with PHP and I've been tinkering with customizing my website. Does anyone know how to center the top sub navigation links on the magazine basic theme? I can't seem to figure it out. This is my website if you want to take a look: http://www.icstillwater.com

    Thanks a million!
    Steve

  2. batharoy
    Member
    Posted 6 months ago #

    You can do it with CSS.

    #site-sub-navigation {
    text-align: center;
    }

    If your theme has a place for custom css us that, if not create a child theme or install a custom css plugin.

  3. sfowler2
    Member
    Posted 6 months ago #

    Hi thanks for your response! I tried adding a text-align center to the style.css form in the editor but it did not work. this is my code:
    #site-navigation,
    #site-sub-navigation {
    position: relative;
    z-index: 500;
    font-size: 13px;
    display: block;
    background: #444;
    text-align:center;
    clear: both;
    font-family: 'Cantata One', serif;
    font-weight: 400;
    }

  4. Andrew
    Forum Moderator
    Posted 6 months ago #

    Install this Custom CSS Manager plugin http://wordpress.org/plugins/custom-css-manager-plugin

    Then use its "CSS Code" section of the dashboard to hold your CSS modifications.

  5. sfowler2
    Member
    Posted 6 months ago #

    Ah thanks so much! Your first suggestion actually worked, I think I just had to restart my browser or something.

Reply

You must log in to post.

About this Topic