Forums Forums Search & Filter Pro Display Search Form on only one page

Viewing 10 posts - 1 through 10 (of 12 total)
  • Anonymous
    #260950

    Hi,

    I’ve created a search form to search content in a post type archive. The form is working and the results display properly in the archive. However, I only want the search form/options to appear when users are in the post type archive and for it to not appear on other pages on the site.

    How would I do this? Right now I’m displaying the search form by adding it to the side menu as a widget.

    Thanks,
    Jessica

    Trevor
    #261058

    Hi Jessica

    You would need to use a plugin like this one:

    https://wordpress.org/plugins/widget-logic/

    It adds a logic box on the widget box where you can set rules as to which pages the widget should show. There are other plugins that do much the same, so this isn’t the only one.

    I see you also posted on a thread that was pretty much private replies only. I removed that posts, and also the duplicate of this one that you posted in the other forum. If the subject of this post wasn’t all you needed to ask, can you reply with a follow on question here?

    Anonymous
    #261065

    I am not using elementor. Can I do this without it? I currently have the display results method set to post type archive. Is there a reason this is not working?

    Jessica

    Trevor
    #261067
    This reply has been marked as private.
    Trevor
    #261068

    with regard to using the Post Type Archive Method, it depends what you are trying to do. Are you able to send me a live link/URL to your search page so I can take a look?

    Can you briefly explain what is going wrong?

    Anonymous
    #261166
    This reply has been marked as private.
    Trevor
    #261171

    Can you try changing the Ajax Container from #main to #blog-posts

    Anonymous
    #261173
    This reply has been marked as private.
    Trevor
    #261175

    It is not to do with the type of post being searched, it is the HTML of the page.

    In our form design, here you need to put what I said:

    https://www.screencast.com/t/crJHW1V0G

    Anonymous
    #261177

    Ahh great, it’s working now. Thanks for your help!

Viewing 10 posts - 1 through 10 (of 12 total)