This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Excluding posts/pages/cpts does not work

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Excluding posts/pages/cpts does not work Reply To: Excluding posts/pages/cpts does not work

#33063
MarioLadani03MarioLadani03
Participant

Hi Ernest,

Thank you very much for your help, the exclusion of certain shortcodes using the index table engine works great!

Also, thank you for showing me how to exclude whole pages such as the home page and the contact page, but as far as I understand, this is not really something I’m trying to achieve.
What I want to do is exclude my main menu and my footer from the search results. I will try to give you a more detailed description of an example.

1) Using the search term “erwerbs”, I get the following results, including the page “Alters- und Hinterlassenenverischerung”: https://abload.de/img/ahv_searchd0jdr.jpg

2) I click on the search result and get redirected to that page. Using the dev tools, I search for the term “erwerbs” inside the source code of the rendered page, but the only hits I get are from the header (main menu) and the footer of the page: https://abload.de/img/erwerbs_on_ahvq9kvz.jpg

Is there any way of excluding the entire header and footer area of all pages from the search?
I am assuming exluding the footer (like this: https://abload.de/img/footer_post_type8dkbp.jpg) here does not work, because et_pb_layout is just a storage post type, correct?

Hope this description is a bit clearer, my last one was wishy-washy.

Thanks in advance!

  • This reply was modified 5 years, 1 month ago by MarioLadani03MarioLadani03. Reason: added a screenshot