• Resolved taxlawmen

    (@taxlawmen1)


    Hello.
    This is a question about the search results.
    When I type a search term in Search and press Enter, the search results are out of the page of this plugin. That is, it changes to the search results screen in WordPress. This means that when searching, not only the docs list but also the post’s writing are all shown in the search results. I don’t know why it’s not in the page of this plugin.
    I changed it to the WordPress default theme(Twenty Twenty-Four) and tried it, and it was the same result. However, in the past, the page of this plugin showed the search results normally.
    Is this operation normal? If not, what should I do?
    Thank you.

    • This topic was modified 3 weeks, 5 days ago by taxlawmen.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Sajjad Hossain

    (@codersajjad)

    Hello,

    Thank you for reaching out!

    Currently, this behavior is normal. We plan to improve this in an upcoming version by removing the “Enter” key function to prevent redirecting to the full WordPress search results.

    Let us know if you need further assistance!

    Thread Starter taxlawmen

    (@taxlawmen1)

    Your reply that this behavior is normal made me wonder, because, I’ve rarely seen it work like this on a similar plugin.
    I really don’t want or need the docs document’s search results to be redirected to WordPress search results. I don’t understand why docs documents are normal to work like this. In my opinion, the user wants to see the search results within the docs document, not all the results within the homepage that includes the post.

    And, the reason why I chose this plugin out of the various docs plugins was obviously the best option. However, this change is not a good one for me at least. So, like the moment I first chose this plugin, I’ll think again if the solution to getting rid of the Enter key is still the best option for me.

    Anyway, I need to limit this normal behavior now. So, before the next version you mentioned comes out, I want to revert to the version that works as before. Could you please let me know that version? (If it’s correct that I mentioned that it wasn’t redirected to WordPress search results before.)

    • This reply was modified 3 weeks, 3 days ago by taxlawmen.
    Plugin Author Sajjad Hossain

    (@codersajjad)

    Could you please specify which version displayed only doc results when pressing Enter? In our previous 4 or 5 version, pressing Enter has historically shown results from both docs and posts. We plan to make adjustments to prevent this in the upcoming version.

    If you need an immediate solution, I can help you with some custom code to disable the enter press. Let me know if this would work for you!

    Thank you.

    Thread Starter taxlawmen

    (@taxlawmen1)

    Thank you for your reply.
    Your custom code is helpful to me now. If you let me know, I’ll test it out.
    And, if you don’t have a previous version that only shows the results of the document, I think your answer is correct. Maybe, I saw your demo site and thought about it.

    Plugin Author Sajjad Hossain

    (@codersajjad)

    Here’s the code to disable the Enter key press in the search:

    $('#ezd_searchInput').on('keydown', function(event) {
    if (event.key === "Enter") {
    event.preventDefault(); // Prevent the default form submission or action
    }
    });

    Please let us know if it works as expected. If you’re satisfied with the plugin, we’d appreciate it if you could leave a positive feedback!

    Thank you.

    Thread Starter taxlawmen

    (@taxlawmen1)

    Your code worked for me. And, I removed the search button additionally from the search widget. Because, clicking on that button causes the same problem. Thank you.
    I have 2 questions for the my future plan.
    1.Does planning in the upcoming version disable the enter key or does it only show doc document results when I press the enter key?
    2. Your demo site only shows the doc document results when I click search. What’s the difference?

    Plugin Author Sajjad Hossain

    (@codersajjad)

    Hello,

    Thanks for the update!

    1. In the upcoming version, we’ll disable the “Enter” key function for search, which should prevent it from redirecting to WordPress results.
    2. On our demo site, the search results display everything, as this behavior is managed by the theme. You can see the screenshot here.

    Please let me know if you need further assistance!

    Thread Starter taxlawmen

    (@taxlawmen1)

    Hello,
    What I was curious about in your demo was that I wanted to know if the search results page came out like a demo page if I used the pro version.
    However, you answered that the result page is not because of the plugin, but because of the theme.
    Realistically, I can’t change the theme. So I can’t get results page like demo site? In other words, I can’t apply even if I use pro version?

    Plugin Author Sajjad Hossain

    (@codersajjad)

    I’d like to clarify that on our demo site, when you perform a search and press enter, it displays a tabbed search results page with sections like “All,” “Docs,” “Blog,” and “FAQ.” Please see the screenshot here: screenshot link.

    Could you let us know specifically what you would like to display on your search results page? This information will help me provide you with an exact answer on whether it can be achieved with the Pro version.

    Thread Starter taxlawmen

    (@taxlawmen1)

    My question is the same from the beginning to the present. When I press the Enter key, it doesn’t redirect to the WordPress search results page, but it should stay on the plugin’s search results page. I thought that using the Pro version, it would be possible, but you answered no. So, I wanted to double-check to eliminate the misunderstanding.

    And, if there’s anything I want, it’s that the search results page should keep the design of the plugin and stay in the search page without being redirected. And the search results should only show doc documents. However, your answer seems to be that redirect to the WordPress results page is a setting that cannot be changed. And even with the pro version, it seems to work the same way. Consequently, I found out that if I want to use this plugin, the only option I can choose is to remove the enter key.

    Thank you for your reply.

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.