• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Center posts and color navigation bar background

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Center posts and color navigation bar background

This topic is: resolved

Tagged: color, Navigation Bar, posts

  • This topic has 8 replies, 2 voices, and was last updated 9 years ago by asterbird.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • January 26, 2014 at 4:39 pm #87134
    sjogborn
    Member

    Hi all,

    I just started using the Foodie theme and have a couple of questions - tried searching for the answer in the forums, but I'm not sure whether I've gone too far and messed up the CSS...

    My site is at http://www.clarkandschiller.com

    1.) I'd like to center my posts and the title of the posts
    2.) I'd like to give a background color to my navigation bar and edit the current text color of the navigation bar

    Any help you can provide would be greatly appreciated.

    http://www.clarkandschiller.com
    January 27, 2014 at 1:15 pm #87271
    sjogborn
    Member

    Just bumping this...can anyone help?

    January 27, 2014 at 4:20 pm #87306
    asterbird
    Member

    Hi @sjogborn, are you comfortable going into your style.css file and making changes?

    1) If you want to center everything, including title, photo, and meta, here's a good place to start - add text-align: center; to the entry class in line 1596 in your stylesheet. You'd end up with this:

    .entry {
        background: #fff;
        margin-bottom: 2rem;
        padding: 0 0 2.2rem;
        text-align: center;
    }

    2a) Background color is line 1418 in your style.css. Try:

    .genesis-nav-menu {
        color: red;
    }

    2b) Text color of navigation is line 1442 in your style.css. Try:

    .genesis-nav-menu a {
        color: blue;
    }

    Hope that helps! Cheers,

    January 27, 2014 at 7:21 pm #87354
    sjogborn
    Member

    Hi @asterbird, definitely comfortable editing the .css file, and the centering worked!

    However, when I go back to change the color of the navigation menu or the text, it still doesn't change. Any idea why; is there code somewhere that's preventing that change from happening?

    Thanks for your help!

    January 27, 2014 at 7:30 pm #87356
    asterbird
    Member

    Yes, it's line 1454 now. With your other changes, the line #s change 🙂

    See the following on line 1454?

    .genesis-nav-menu a {
    	border: none;
    	color: #333;
    	font-size: 12px;
    	font-size: 1.2rem;
    	display: block;
    	padding: 16px 22px;
    	padding: 1.6rem 2.2rem;
    	position: relative;
    }

    Change the #333 color to red, that should work. Then on line 1442, delete .genesis-nav-menu a { color: red; } since you don't need that after all.

    January 27, 2014 at 7:46 pm #87363
    sjogborn
    Member

    @asterbird, got it. Thanks for your help. One last question - the color isn't consistent across the entire bar - any idea where I can go to fix that? Does this have to do with display: block?

    Thanks again!

    January 27, 2014 at 7:57 pm #87369
    asterbird
    Member

    Looks like you have the green background on each li. You can try adding the green to the ul instead of li.

    Go to line 1425: .genesis-nav-menu {... and add background: green; to it.
    Then delete the green background on the li that you have.

    Hope that helps 🙂

    January 27, 2014 at 8:08 pm #87375
    sjogborn
    Member

    You're the bomb, @asterbird. Thank you!

    January 27, 2014 at 8:15 pm #87377
    asterbird
    Member

    np 🙂

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble