Exclude topmenu items

This topic contains 7 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 5 years, 6 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #19602
    99projects
    99projects
    Participant

    login via https://www.ecdl.nl/content/wp-admin/

    I am testing Ajax Search Pro and I would like to ask you if it’s possible to have the topmenu that we made by using button modules (in Divi page builder) excluded. Because right now when using the search in a lot of instances the results begin with all the topmenu items “Mijn ECDL Over ons FAQ Nieuws Contact”
    I have tried to exclude these by following your guidelines and giving the topmenu section an id but then nothing was shown (No results page).
    Is there something I missed or is there any other way to achieve this?

    Thanks in advance!
    Steven

    #19603
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Steven,

    Thank you very much for the details, it helps me a lot!

    Okay, so the top menu items are actually pages, so I am guessing, you don’t want to get results from the ‘page’ post type. By default the plugin returns posts and pages. To disable pages as results, simply drag the ‘page’ custom post type from the selection, like this: https://i.imgur.com/UL97WRH.png

    If you don’t want to exclude all pages, only some of them, then you can use the page exclusion option, under the Advanced Options ->Exclude results panel here instead: https://i.imgur.com/uqiJ46y.png

    Best,
    Ernest Marcinko

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


    #19605
    99projects
    99projects
    Participant

    Sorry, I forgot this… You can find the search bar on this page: https://www.ecdl.nl/over-ecdl/
    It’s right below the content.

    #19606
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Thank you, I was able to test the search on the back-end.

    Please check our previous reply, it should contain the resolution.

    Best,
    Ernest Marcinko

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


    #19607
    99projects
    99projects
    Participant

    Hi Ernest, thank you for your quick response once again. It’s not what I meant though.
    I only want to exclude the text that’s in the buttons: “Mijn ECDL” “Over ons” “FAQ” “Nieuws” “Contact” “Modules” “Organisaties” etc See image menu on page.jpg

    Because now every search result that is a page starts with these words and they’re not useful 😉 See image search results.jpg
    But certainly I want all pages and posts included in the search result.

    I hope this makes sense…

    Attachments:
    You must be logged in to view attached files.
    #19610
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    I see it now, you mean the results page (when hittin the return button, or the magnifier). Unfortunately that is not affected by the plugin itself, it is fully controlled by the theme. The plugin just sends the posts that it found to the theme search handler page, and it parses the individual fields.
    You might have to contact the theme author on how to exclude those from the results.

    Best,
    Ernest Marcinko

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


    #19611
    99projects
    99projects
    Participant

    OK, thanks! I will try to get in touch with them.

    #19612
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.