• Resolved Alex Stine

    (@alexstine)


    Hello,

    I would like to start customizing the plugin templates a bit more to make it a bit more personalized for my site. Here are my questions.
    1. Under “Frontpage settings”, if I choose Custom under Content box type, then design a custom template based off one of the plugin templates, will I need to do anything else in regards to including jQuery or will it continue to work as normal?
    2. If I want to use my custom search template, does this option still need to be enabled? “Use plugin search page”
    3. Is jQuery absolutely necessary for grabbing search results or can this happen on page load? Page load is a more accessible alternative than jQuery because screen reader users don’t know when jQuery has returned the search results. Usually not a problem on good connections, but poor connections can create a substantial confusing lag.

    I’m getting there with the plugin, it has certainly served me well this far. Thanks for your support.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Andrea Landonio

    (@lando1982)

    Hi Alex,

    Here me responses:

    1. You need to keep jQuery flag enable if in your theme you don’t enqueue jQuery before. In other ways, if in your theme you include jQuery scripts before you should disable this flag, otherwise keep it enabled.

    2. Yes, you can disable this flag

    3. Unfortunately plugin works with jQuery and not in other ways. Any alternative requires a fix. If mandatory for you I can alter my code but this issue is not very easy and quick. If you want you can tell me more about it.. more details, example of code.. may help.. ??

    Thread Starter Alex Stine

    (@alexstine)

    Hello,

    I can’t give you an example of this unfortunately, I don’t know jQuery very well. What needs to happen is you need to add a focusable message that is read once by screen readers automatically when search results load.

    Hope that helps. Thanks.

    Plugin Author Andrea Landonio

    (@lando1982)

    Hi Alex, a solution for not use jQuery could be create a search page by your how that call the API via PHP (in other words, in a server-side way).. with this solution you have all the results in the HTML markup of the page. The only “hard” task is that you have to implement code and manage item layout and pagination..

    Thread Starter Alex Stine

    (@alexstine)

    Hello @lando1982,

    Anyway you could provide step by step instructions? I’m pretty much to the point where I cannot see anything, so trying to picture design stuff in my head doesn’t really work.

    Thanks.

    Plugin Author Andrea Landonio

    (@lando1982)

    Hi Alex, can you give me your e-mail? I can send you a snippet of code to implement a server side search to solve the jQuery problem..

    Thread Starter Alex Stine

    (@alexstine)

    @lando1982

    I would like to provide my email, but I know I’ll get spammed like crazy. Can you link it in a GitHub Gist and link it here? If you have an email, I’d more than happy to give it privately.

    Thanks.

    Plugin Author Andrea Landonio

    (@lando1982)

    Ok Alex, I’m very busy in these days.. I’ll give you the snippet via GitHub.. ??

    Thread Starter Alex Stine

    (@alexstine)

    Sounds good, no rush, send it when ready. ??

    Thanks.

    Plugin Author Andrea Landonio

    (@lando1982)

    Hi Alex,

    Here an example:
    https://gist.github.com/andrealandonio/787763f888b05bea37b11ef446b43127

    Create a page in your theme, solution, plugin, and making a URL request like:
    https://localhost/query-cs.php?search_field=post_content&search_keyword=salone&start=1&size=10

    You can get a search on CS without jQuery, but having pagination and all CS index data.. if you are able to read/edit PHP code, it’s quite simple to customize the file..

    Thread Starter Alex Stine

    (@alexstine)

    Thanks, looks good. ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Customizing Search Results’ is closed to new replies.