-
AuthorPosts
-
November 16, 2014 at 9:26 pm #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).
November 17, 2014 at 1:20 pm #352376Hi 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,
IsmaelApril 29, 2015 at 4:54 pm #436832I 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 pageTo 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.
April 30, 2015 at 10:24 am #437288September 3, 2016 at 4:12 am #681518cordellbrewer – 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!
September 6, 2016 at 4:28 am #682397October 27, 2016 at 8:29 pm #705001Thank you cordellbrewer!!!!
-
AuthorPosts
- The topic ‘Shortcode or function to add search in custom locations’ is closed to new replies.