Community Forums › Forums › Archived Forums › Design Tips and Tricks › Adding Search Form to Magazine Pro Header
- This topic has 9 replies, 3 voices, and was last updated 7 years ago by
marp.
-
AuthorPosts
-
December 27, 2018 at 6:35 pm #225264
marp
MemberI 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 #225275Sridhar Katakam
ParticipantAdd 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; } }
December 28, 2018 at 6:01 pm #225285marp
MemberThanks, 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 #225310Sridhar Katakam
ParticipantJanuary 10, 2019 at 5:08 pm #250598marp
MemberThank you. Actually that's OK, I figured out how to move the search form lower.
January 10, 2019 at 5:13 pm #250651marp
MemberHowever, 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 #257656Victor Font
ModeratorThe 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 #260629marp
MemberThanks 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 #269333Victor Font
ModeratorThe 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 #328540marp
MemberOk that makes sense. Thank you Victor!
-
AuthorPosts
- The topic ‘Adding Search Form to Magazine Pro Header’ is closed to new replies.