add search to primary menu

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 Ernest Marcinko 8 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7105
    cerebro
    cerebro
    Participant

    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.

    #7110
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    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 :)


    #7119
    cerebro
    cerebro
    Participant

    Hello, 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.

    #7120
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    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.
    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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.