Jump to content
Sign in to follow this  
zouleo

Search section?

Recommended Posts

zouleo

I need a big search form. Is there a search section? If not, is it possible to build one?

Share this post


Link to post
Share on other sites
cmunns

You need a big search form stylistically? or you need a large area/page for it...Do you have an example of what you mean?

Share this post


Link to post
Share on other sites
zouleo

@cmmuns What I need is a search section. Why? Today all I have is the small search form in the top right of the screen. I need a bigger one on my front page - just below the feature section. Shouldn't a search section be included in PlatformPro? Anyway. Is it possible to create a search section? Can you help me?

Share this post


Link to post
Share on other sites
Kate

Zouleo, If you use a widget section you can drag and drop the search into there.

Share this post


Link to post
Share on other sites
zouleo

That would be great. But I don't use widgets on my front page. And the search box in widget is too small. What I need is a search section. Any ideas of how to create one?

Share this post


Link to post
Share on other sites
cmunns

A search section wouldn't be too difficult but it's not going to make the actual search bar itself any bigger unless you change the CSS for how the search looks. Does that make sense. So more appropriately you could probably just use a hook to add the search form and then change the css. The documentation on child theming actually has a sample of how to include a search form using a hook :)

Share this post


Link to post
Share on other sites
zouleo

I would like to use a section, not a hook. But I guess it's not so complicated to create a section. The problem is that I'm not sure how to make the search form bigger using CSS. The default search box has an image inside of it. But I want a normal button. I want the search box to be beautiful, like the rest of the theme. And I need it to work in different browsers. Any ideas?

Share this post


Link to post
Share on other sites
zouleo

Just an update. I've created a new section, based on the example. The only relevant code is this: function section_template() { get_search_form(); } In my base.css I've added: #search_section .searchfield { font-size: 20px; } The problem I'm facing is that the submit button is using an hard coded image /wp-content/themes/platformpro/images/search-btn.png". It's too small. Is it possible to change this to a normal button using CSS?

Share this post


Link to post
Share on other sites
cmunns

Absolutely just copy the selectors you see from the CSS and prefix it with your unique id e.g. #search_section I believe the image is applied as a css background..or is it really a ``...? Do you have a link showing your progress?

Share this post


Link to post
Share on other sites
zouleo

The image is

<input type="image" class="submit btn" name="submit" src="/wp-content/themes/platformpro/images/search-btn.png" alt="Go">

How can I modify it using CSS? I need a real button OR a larger image.

Share this post


Link to post
Share on other sites
cmunns

well instead of get_search_form function you can write your own search form by modifying what is inside of the funtion ` ` This way you can link to your own image instead of the default one.

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  

×