Tagged: search, search box
Hi,
How can I add the search box to specific pages?
Thanks,
Derek
Hey derek62!
You can add following code to theme files depending on place you would like to display search box, you can go to Appearance > Editor and open header.php file and add following code to the very bottom of the file, so it will only display on page with ID of 1167
<?php if(is_page(1167)) {
get_search_form();
}
?>
Please see this post to learn about finding page ID’s using developer tools on browser https://kriesi.at/support/topic/mini-heading-in-page/#post-188120
Regards,
Yigit
Yigit – thanks but what I’s really like to do is to put it into the special widget area then place it exactly where I want it using the avia widget tool.
Any idea how I could do that?
Ismael, thanks but I really would not even attempt that – too advanced for me. Can’t your current search which appears at the top of every page be made into a widget that I can drag and drop using avia?