Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #189778

    Hi,

    How can I add the search box to specific pages?

    Thanks,

    Derek

    #190201

    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

    #191096

    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?

    #191324

    Hi!

    You can use this plugin: http://wordpress.org/plugins/widget-logic/

    Cheers!
    Ismael

    #191353

    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?

    #191633

    Hey!

    You can go to Appearance > Widgets and add “Search” widget to any widget are you like then add Widget Area Element in Content Elements to your page and use it.

    Cheers!
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Search Box’ is closed to new replies.