Tagged: ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #352160

    Can anyone confirm if there is a shortcode or function (avia or otherwise) to show the enfold search button. I would like to be able to add the search button to my custom menus, slide out panels, etc. I have searched the forums and do not see any reference to adding the enfold search button in custom locations (only references on replacing the search with other plugins or displaying it in the header through settings).

    #352376

    Hi jporven!

    Thank you for using Enfold.

    I’m sorry but there is no shortcode to show the search box on custom locations. You can use the default get_search_form() function on the template files (single.php, page.php etc).

    Best regards,
    Ismael

    #436832

    I know this is an old post but it is the one that comes up when I search for a solution for this.
    I found no answer when I looked so I figured out this solution which works beautifully.

    To add the Enfold search function to page content or create a search shortcode that you can use anywhere:
    – go to “appearance” > “widgets”
    – under “enfold custom widget area” add a “custom widget area” and name it “MySearch”
    – drag the search widget from the left column to your new widget area and save
    – on the page you are editing, enable the advanced layout editor
    – under “content elements” drag the “widget area” element onto your page
    – select the MySearch widget and update your page

    To create a shortcode for this, you create a shortcode for a custom widget area and then change the widget area name to MySearch, like so:
    – go to a new blank page, you must have the default editor enabled (not advanced editor)
    – find the “insert theme shortcode” dropdown above the editor
    – insert a custom widget area shortcode and insert it
    – rename the widget area name to MySearch (or whatever you called your custom widget area)
    – or just copy this one: [av_sidebar widget_area='MySearch']

    I hope that works for you.

    #437288

    Hey!

    Thanks for sharing! :)

    Cheers!
    Rikard

    #681518

    cordellbrewer – THANK YOU!!! I love it when people are nice enough to take the time just to post a solution to help others like me when googling for a solution. This… worked… PERFECTLY!

    #682397

    Hi @enfold4phil,

    Glad you found the code useful :-)

    Cheers!
    Rikard

    #705001

    Thank you cordellbrewer!!!!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Shortcode or function to add search in custom locations’ is closed to new replies.