Jump to content


Photo

Search form


This topic has been archived. This means that you cannot reply to this topic.
8 replies to this topic

#1 claudiomaria

claudiomaria

    Newbie

  • Members
  • 8 posts

Posted 01 November 2010 - 04:56 PM

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.

#2 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts

Posted 01 November 2010 - 06:19 PM

The searchform is already in the header by default. on the same line as the navigation.

#3 claudiomaria

claudiomaria

    Newbie

  • Members
  • 8 posts

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 srosenquist

srosenquist

    Newbie

  • Members
  • Pip
  • 3 posts

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 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

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

#6 claudiomaria

claudiomaria

    Newbie

  • Members
  • 8 posts

Posted 02 November 2010 - 04:17 PM

Here it is the link (the site is still in construction). In practice we would like to take away the social icons and, in their place, having the search form. Thanks!!!

#7 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts

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 claudiomaria

claudiomaria

    Newbie

  • Members
  • 8 posts

Posted 02 November 2010 - 11:00 PM

Thanks!!!

#9 wairoa

wairoa

    Advanced Member

  • Members
  • PipPipPip
  • 45 posts

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?