• 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

Adding Search Form to Magazine 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 › Design Tips and Tricks › Adding Search Form to Magazine Pro Header

This topic is: resolved
  • This topic has 9 replies, 3 voices, and was last updated 4 years, 8 months ago by marp.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • December 27, 2018 at 6:35 pm #225264
    marp
    Member

    I added a search form to the Magazine Pro header right widget area. My site has a logo in the middle of the header but the search form moved the logo over to the far left.

    Is there a way to add the search form so the logo will stay in the middle?

    December 28, 2018 at 12:54 am #225275
    Sridhar Katakam
    Participant

    Add the following in Magazine Pro's <span class="file-name">style.css</span>:

    @media only screen and (min-width: 1024px) {
    
    	.site-header .wrap {
    		position: relative;
    	}
    
    	.title-area {
    		width: 100%;
    	}
    
    	.site-header .widget-area {
    		position: absolute;
    		right: 0;
    	}
    
    }

    screenshot


    Genesis Tutorials | Follow me on Twitter

    December 28, 2018 at 6:01 pm #225285
    marp
    Member

    Thanks, that did the trick!

    Hmmm, now that presents another question. Do you know, how I can edit the css for the search form location, and style? I'd like to drop it down lower closer to the navigation. And make it smaller.

    December 29, 2018 at 4:22 pm #225310
    Sridhar Katakam
    Participant

    Can you provide the URL of your site?


    Genesis Tutorials | Follow me on Twitter

    January 10, 2019 at 5:08 pm #250598
    marp
    Member

    Thank you. Actually that's OK, I figured out how to move the search form lower.

    January 10, 2019 at 5:13 pm #250651
    marp
    Member

    However, I just realized that the code, while it brought the logo back to the center, caused the logo to stop linking to the home page. Here is the site: anxietyreliefproject dot com

    January 11, 2019 at 7:41 am #257656
    Victor Font
    Moderator

    The logo did not stop linking to the home page. Your header right widget area is too wide and is actually sitting on top of the logo blocking it from being clicked. You have to shorten the header right widget area. Look for the .site-header .widget-area class in style.css around line 1431 and change the width to 400px. That should fix it for you.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    January 11, 2019 at 1:51 pm #260629
    marp
    Member

    Thanks for your help. One question though, I did not change the header widget width, it is the magazine pro theme default. So how did it become too wide? It was ok before I added the search form, so now I'm starting to worry that I'm going to create a spiral of edits and end up creating more problems.

    January 12, 2019 at 7:48 am #269333
    Victor Font
    Moderator

    The site header widget area doesn't exist in code until you add a widget to it. That's why everything worked before you added the search form. There was no widget area to overlap the logo.

    Learn to use your browser's built-in inspection tools. They are your friend and allow you to test CSS changes non-destructively in your browser before applying them permanently to your code.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    January 17, 2019 at 7:56 am #328540
    marp
    Member

    Ok that makes sense. Thank you Victor!

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Adding Search Form to Magazine 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