• 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

I want to center elements in the Parallax Pro Header

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 › I want to center elements in the Parallax Pro Header

This topic is: resolved

Tagged: header, parallax-pro

  • This topic has 7 replies, 5 voices, and was last updated 8 years ago by jbendiner.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • February 5, 2014 at 7:22 pm #88887
    pcgs51
    Member

    I want to center elements in the Parallax Pro Header. Specifically the logo and the .site-header .widget-area that normally appear on the left (logo) and the right (widget area).

    I managed to get the .site-header .widget-area to go full width and center the menu in the header but I also need to make the logo in the header appear centered above the menu. I cannot get that logo to budge. What am I missing here?


    http://tfdemo2.wpengine.com/


    Thanks,
    pcgs51

    http://tfdemo2.wpengine.com/
    February 5, 2014 at 8:18 pm #88889
    nutsandbolts
    Member

    Try this -

    (1) Add a margin: 0 auto; to this rule:

    .header-image .site-title > a {
    background-size: contain !important;
    display: block;
    height: 143px;
    text-indent: -9999px;
    width: 400px;
    margin: 0 auto;
    }

    (2) Change the width of .title-area from 400px to 100%, remove the float: left, and add margin: 0 auto; to it as well.

    .title-area {
    padding: 20px 0;
    width: 100%;
    margin: 0 auto;
    }

    If that doesn't work, leave it in place and let me know; I'll be glad to take another look.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    February 5, 2014 at 9:06 pm #88894
    pcgs51
    Member

    Hi Andrea!

    That works almost 100%. The only flaw is that the image doesn't scale for devices like the rest of the site does when you view in a less than 480px width device. It pushes off to the right by about 40-60px when viewing on a 320px wide iPhone. Looks fine at the 480px width and up.

    But this is way better than it was.
    Thanks again!


    Thanks,
    pcgs51

    February 5, 2014 at 9:16 pm #88895
    nutsandbolts
    Member

    Okay, try this. At the very bottom of the stylesheet, add this:

    @media only screen and (max-width: 399px) {
    .header-image .site-title > a {
    width: 100%;
    }
    }

    Let me know if that fixes it - it does for me in Inspector but that doesn't necessarily mean it will work in real life.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    February 5, 2014 at 9:51 pm #88901
    sdbroker
    Member

    Under .header-image .site-title > a change width: 400px; that you currently have to max-width: 400px;.

    It works for me without having to change or add anything else to the @media code.

    February 6, 2014 at 12:25 am #88911
    pcgs51
    Member

    Many thanks to you both Andrea and sdbroker! They both work. I'm currently using sdbroker's solution but both are helpful for the sake of learning.

    Thanks so much for the generosity of your time and talents!


    Thanks,
    pcgs51

    November 9, 2014 at 2:03 am #130971
    jhs
    Member
    This reply has been marked as private.
    May 12, 2015 at 8:07 pm #151951
    jbendiner
    Member

    Hi pcg51,
    I am trying to implement my new site using Parallax and I would like to do exactly what you did with yours: move the logo above the nav menu at the top, and center both. Would you be willing to share with me the code changes you made to make yours work? I tried to follow the replies but I am not certain of what/where has to be changed.

    Many thanks.
    Jerry

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘I want to center elements in the Parallax Pro Header’ is closed to new 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