Jump to content
Sign in to follow this  
m73a

Need to add search bar to right of social media icons in PlatformPro theme

Recommended Posts

m73a

I'm trying to figure out how to move my search bar from its current position from the right of the top navigation to the right of the social media icons at this site. I have chosen the "hide search" option in the header area and added the following custom CSS code: body{} .searchform { position: absolute; right: 165px; top: 43px; } It's beyond my area of expertise to figure out why the search box isn't appearing. Thanks in advance for your help! -Matt

Share this post


Link to post
Share on other sites
bryan-hadaway

The CSS only styles/positions it, you need to set it to be shown in the options again for that to happen. A more proper way to do this would be with a hook: http://www.pagelines.com/docs/base-child-theme But, let's try the simple way first. Thanks, Bryan

Share this post


Link to post
Share on other sites
m73a

Ugh -- I'll preface my response to say that I'm not too savvy with php. Still learning how it works, in fact. I read through the "hook" section and it seems pretty intuitive. I updated my "functions.php" file as recommended and I have an error message on my site. I removed the code (which must not have been right) and reverted to the original code on the file -- still getting the error. If someone can walk me through this issue, I'll do my best to get up to speed quickly so I don't have too many other annoying questions. Thanks, Bryan. -Matt

Share this post


Link to post
Share on other sites
m73a

Here is the code in the functions.php file as it stands currently: <?php /* THEME INITIALIZATION This file loads the core framework for Platform which handles everything. This theme copyright © 2008-2010 PageLines */ require_once(TEMPLATEPATH . "/core/core.init.php");

Share this post


Link to post
Share on other sites
cmunns

You need to use PlatformBase child theme and add to the functions.php file there NOT in the parent theme. Actually the video I did on hooks in the link Bryan provided will show you how to add the search form. ** and I apologize if it's a little dry :)

Share this post


Link to post
Share on other sites
m73a

Got it -- thanks, Adam. In the meantime, can I make any changes to the actual "functions.php" file so I can get my site back online, or will making changes through the child theme resolve my issues?

Share this post


Link to post
Share on other sites
m73a

Fixed the parent "functions.php" file -- site is back online. Your video is very helpful and informative. However, I'm assuming I'll have to enter in some information in the base.css file to call out the "new search". What did you add in the CSS file to make the search box appear? Sorry again -- I know HTML just fine, but this is my first dive into the world of PHP and CSS.

Share this post


Link to post
Share on other sites
bryan-hadaway

CSS does not make something appear, only style or position something that is already present. The PHP for the search form is: `<?php get_search_form(); ?>` Thanks, Bryan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×