Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › add search to primary menu
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 7 years, 9 months ago.
- AuthorPosts
- December 17, 2015 at 1:16 am #7105
Hello, I purchased the Ajax Search Pro. My question is can I add the shortcode to the primary menu? I was hoping to add it either through the backend or even through a php file as a last resort. I would like to have just the search icon show in the primary menu. Please let me know if you can help me with this.
December 17, 2015 at 9:30 am #7110Hi!
WordPress does not allow putting shortcodes to menus unfortunately. The only possible way is to edit the corresponding PHP file and put the search shortcode before or after the menu element.
Ususally the header menu is displayed in the header.php file in your active theme directory. You will have to use the PHP shortcode of the plugin: https://goo.gl/DLrp2n
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 18, 2015 at 1:42 am #7119Hello, I couldn’t figure out how to add the search to the navigation bar so ended up using it as a floating search on the right side. I have another problem when I search it takes me to the default search result page which I do not want. How would I go about customizing the default search result page to use the ajax search pro systems? I have been looking in the search.php but am not sure if thats the correct place to be looking. Thank you and I appreciate your help.
December 18, 2015 at 8:19 am #7120Hi!
The look of the default results page is indeed printed from the search.php in your theme directory. It’s true for the most themes, some others might use different files.
If you decide to customize that page, I recommend creating a child theme, so you won’t loose your modifications on updates.
Best,
Unfortunately I cannot provide an exact tutorial on how to customize that file, as it’s very different for each and every theme out there. If you are unsure of some things, I highly recommend asking the theme author for advice about modifications. They usually tend to be very helpful.
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.