Hello, is it possible to have the Search Form (in the Header) instead of the social icons or above them? This option could be very useful for those who need a long menu.
Search form
Started by
claudiomaria
, Nov 01 2010 04:56 PM
8 replies to this topic
#1
Posted 01 November 2010 - 04:56 PM
#2
Posted 01 November 2010 - 06:19 PM
The searchform is already in the header by default. on the same line as the navigation.
#3
Posted 01 November 2010 - 06:28 PM
Sorry, I mean if it is possible to display the search form above the menu line, where now the social icons are displayed.
#4
Posted 01 November 2010 - 09:29 PM
Try adding this code to the body -
<?php include (THEME_LIB . '/_searchform.php'); ?>
you may have to disable the built in search in any theme you may be using.
#5
Posted 02 November 2010 - 03:44 AM
Let's get a link, we would simply need to alter some CSS, we don't need to hard code anything.
Thanks, Bryan
#7
Posted 02 November 2010 - 09:11 PM
Yes then what we'd want to do is use a hook. In the functions.php file of BASE put this code
`
// add_action('hook_name','function name');
add_action('pagelines_before_branding_icons', 'searchbar');
// function name
function searchbar(){
get_search_form();
}
// end function
`
Also you can delete the similarly placed code for the stumbleupon icon if you want to get rid of that.
#8
Posted 02 November 2010 - 11:00 PM
Thanks!!!
#9
Posted 03 November 2010 - 12:00 AM
Is there any way I could do something just as simple to get a row of social icons "just like Claudio's" either next to, or below the search box in the EcoPro header?









