• 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

Having trouble centering the logo with infinity pro

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 › General Discussion › Having trouble centering the logo with infinity pro

This topic is: not resolved

Tagged: center logo, Infinity Pro

  • This topic has 5 replies, 2 voices, and was last updated 8 years, 4 months ago by shango.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • January 26, 2017 at 7:12 pm #200099
    shango
    Member

    Hi Group. I'm trying to center the logo with infinity pro theme. Can seem to get it to work. Tried moving site-title to after_header and couldn't get it to work there either. I'm doing something wrong. Any help is appreciated.

    January 26, 2017 at 8:27 pm #200101
    Brad Dalton
    Participant

    Look in the Genesis Sample child themes CSS under the Site Header section because the CSS rule centres the logo.


    Tutorials for StudioPress Themes.

    January 27, 2017 at 2:39 pm #200144
    shango
    Member

    Hi Brad, thanks for the reply. After looking into this further, I think I need to add custom menu widgets to either side of the logo so that it works with my design.

    January 27, 2017 at 9:59 pm #200154
    Brad Dalton
    Participant

    You can do that using several methods.

    One would be to remove genesis_header and then add it back in columns with a widget, title area and widget. You could use column classes included in Genesis.


    Tutorials for StudioPress Themes.

    January 27, 2017 at 10:06 pm #200155
    shango
    Member

    Did it with CSS. Grabbed header image for the bg of the "home" link and placed home menu item in the center of the list in Appearance > menu

    February 3, 2017 at 7:33 pm #200541
    shango
    Member

    Turns out the logo as bg image to home link is not the best plan either. Using a secondary menu on one side of the logo presents issues with some mobile responsive menus. After loads of research and trying each method, the most elegant way to do this seems to be purely with css.
    Remove the header right widget. Add a class to the menu element that you want just to the right of your logo, ie. .split-right. Add margin-left to the split right element, enough to fit your logo. Add the logo to the bg of your site-container a element and then something like this css:

    
    site-title a {
    text-indent: -9999px;
    display: block;
    height: 71px; /* this works cause my logo is 71px high. Leaving no width rule worked out for me. */
    }
    

    Center the logo like this:

    
    .site-title {
    position: absolute;
    left: 0;
    right: 0;
    top: 20px;
    margin: 0 auto;
    	}

    Then adjust it all horizontally with this css:

    ul.genesis-nav-menu > li:first-child {
    margin-left: 95px; /* adjust nav to center around logo */
    	}
    .nav-primary .split-right {
    margin-left: 100px; /* Also needs adjusting to center things */
    	}

    There was an article out there that uses this method. Can't find link now. Works perfectly for me. It's fairly responsive. I break to mobile before things get too screwy.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ 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

© 2025 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