How to define a Search Template for GD's results?

This topic contains 8 replies, has 5 voices, and was last updated by  Stiofan O’Connor 5 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #489667

    Directory Path
    Expired Member
    Post count: 235

    GD is a section of our site. Our site already has a search template configured on Elementor (Display conditions = Search results).
    We want to create a search results page only for GD’s listings. We created a new Archive template called GD Search Templated, added all the widgets from the Search Page, but what display conditions do we set? Archive-Places is already set to GD Archive, and Search Results is already set for the the website’s search results.

    Creating a Search Page doesn’t work because the Display conditions = Search Results from the Site’s search template overrides the layout.

    Creating a Single Template and applying it to the Search Page permalink “search-page” doesn’t work either.

    Thanks.

    #489678

    Kor
    Moderator
    Post count: 16516

    Hi there,

    Thanks for your post. Could you share the URL of the page in question so that we could check what you’ve done on your end and also a WP admin access in private reply?

    #489688

    Directory Path
    Expired Member
    Post count: 235

    This issue only has 1 step necessary to reproduce:
    1. Create a new Archive template on elementor, put anything there, set display conditions to “Search Results”. In our case, we already had this page before installing GD.

    Now GD’s search result will look like this template you just created, and there’s no way to change it. Please let us know how to customize it.

    #489707

    Alex Rollin
    Moderator
    Post count: 27815

    Creating a Search Page doesn’t work because the Display conditions = Search Results from the Site’s search template overrides the layout.

    This is true, and we have written to Elementor about it but no fix yet. Creating a search archive theme builder layout is the only way to customize it with Elementor and it will override WP site search

    #489709

    Directory Path
    Expired Member
    Post count: 235

    Oh boy, this is really bad news 🙁

    #489814

    Directory Path
    Expired Member
    Post count: 235

    Can your smart developers think of a way to get around this issue?

    #489833

    Paolo
    Site Admin
    Post count: 31206

    I flagged this for Stiofan, he’ll have a look at it, while checking the other issue that came up today.

    Thanks

    #489836

    Directory Path
    Expired Member
    Post count: 235

    Here’s a crude solution to share with others having this issue:

    1. Create an empty page named ‘Search Listings’ with permalink “search-listings”. Set it to be the search page for GD. Now all searches coming from GD will have /search-listings in the URL.
    2. On the Search Results template, add code to display both the site search and GD search results. Site search results goes on div1, GD search results on div2.
    3. With jQuery: if url starts with /search-listings, show only div2. Otherwise, show div1.

    This works visually but it is not ideal. Let us know if you guys can think of something better.

    #490006

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Thanks for the tip above.

    To really get it done properly we need a filter in Elementor, we are actively working on this but it not a quick process.

    Thanks,

    Stiofan

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount