• 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

Infinity Pro – Addition to header area

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 › Infinity Pro – Addition to header area

This topic is: resolved

Tagged: header, Infinity Pro

  • This topic has 2 replies, 2 voices, and was last updated 2 years, 7 months ago by SociallyExceptional.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 20, 2020 at 5:49 pm #500210
    SociallyExceptional
    Participant

    Hello! I have been playing with CSS for my header area, but coming up a bit short.

    What I need to do is place a button on the Top Right area of the header here on this site. I keep getting it everywhere but the header area! https://mfaplan.com/

    Any suggestions are welcome. Thank you!

    https://mfaplan.com/
    July 21, 2020 at 6:09 am #500222
    andytc
    Participant

    In the childthemes functions.php , find line 123 - and comment it out (by adding 2 forward slashes) to show the header right widget area - as below

    // Remove header right widget area.
    //unregister_sidebar( 'header-right' );

    Now got to widgets and find your new Header Right Widget area - Add a custom HTML widget and add your button code , leave the widget title blank (unless you want something there) -

    For example -

    <a class="button" href="#front-page-2">Start Your Journey</a>

    There are no existing styles for the header right widget area in the childtheme , so we must add them. Adjust to suit your needs -

    NOTE - We should change the nav-primary menu width from 60% > 100% - if you don't change this , it'll all be bunched up and look terrible. You can adjust that to suit , but try the 100% first.

    Add the styles below into the additional CSS box in the customiser section and adjust to suit your needs -

    .nav-primary {
      width: 100%;
    }
    
    .widget-area.header-widget-area {
      float:right;
      padding: 20px;
    }
    
    @media only screen and (max-width: 800px) {
    
      .widget-area.header-widget-area {
       float: none;
       text-align: center;
      }
    
    }

    Don't forget to clear your browser cache if you don't see the css changes

    July 27, 2020 at 9:42 am #500331
    SociallyExceptional
    Participant

    Thank you very much! This worked great.

    I apologize for the late response, as I was out of town and just was now able to do this.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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