Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › search button floating
This topic contains 6 replies, has 2 voices, and was last updated by Ernest Marcinko 7 months, 2 weeks ago.
- AuthorPosts
- August 6, 2022 at 4:13 pm #38742
Please I want my search button to be floating on every page just like on your demo site and I also want a search button on my menu just like on your demo site.
August 6, 2022 at 7:34 pm #38743You cannot access this content.August 8, 2022 at 1:17 pm #38754Hi,
Thank you for the details.
I see you resolved the floating search bar. All the instructions can be found in this documentation. If you have any questions about that let me know.
The 500 error was caused by the large amount of potential matches in lyrics. I debugged the query, and adjusted the pool size values to reflect the best possible performance. It should work perfectly fine now.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 8, 2022 at 1:52 pm #38756You cannot access this content.August 8, 2022 at 3:06 pm #38760Sure, no problem.
To automatically place the plugin shortcode on all of the pages, you can either put it in a footer widget, or use a custom code as well. Try adding this code to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
add_action('wp_footer', 'asp_add_shortcode_automatically', 999999); function asp_add_shortcode_automatically() { echo do_shortcode('[wpdreams_ajaxsearchpro id=2]'); }
To fix the position of the search, on the compact layout settings change the position to fixed: https://i.imgur.com/VCnXDyH.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 11, 2022 at 10:39 am #38807You cannot access this content.August 11, 2022 at 12:47 pm #38810It is best to change the layout of the results page, as it acts as the default search results page for WordPress. If you are using Elementor Pro by any chance, you could in theory make a custom page as the results page.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.