Upon closing popups in Search, pages appear empty
-
Hello:
While the popups work perfectly throughout the site (https://thinkof.co), when they are opened from the Search function and then closed, the page appears empty, save the top menus that remain intact. Even the side menu disappears. Please help!
Thanks,
Patrick
-
Sorry you’re having troubles with this issue. I’m sure we can get it resolved, but can you be more specific in exactly what I need to do to replicate this issue.
Thank you for your patience.
Hi Mr. Messer:
Simply do a search (not in the forums) using, for example, the word Chaplin, and then click on any of the two results. You’ll get a popup, which when you close, leaves an empty page, save the twp top menus.
Thanks,
Patrick
Thank you for the clarification, now I see what’s going on!
It looks like you’re not triggering the popups properly. The search results shouldn’t have an
href
attached. Check out this doc to learn the ways to properly trigger a popup on click. I would recommend using the Custom CSS Selector Method, as you have many search results, and you don’t want to manually add the trigger for each result.As a side note, let’s say you have 50 actors as possible search results, that means you’re going to have 50 popups, one for each actor. As a result, your site is going to have to constantly load all 50 popups on every page.
This can create long load times for your users, especially if you have 50-100-200 popups. Now then, what if you could have just 1 popup that loads the content dynamically, depending on which actor the user clicks?
Our Remote Content Extension fills this exact role.
While that is the most elegant solution, it would require you to setup your search result content inside of pages, instead of inside of popups like you have now, then we call the page content into the popup remotely.
Let us know if that helps.
- This reply was modified 8 years ago by waltmesser.
Thanks! I wasn’t aware that the Search results had href’s attached to them. How do you see that? I haven’t created any href’s. Also, as I mentioned, the popups work perfectly everywhere else. The problem only occurs through the Search function/results. I can only surmise that there’s a conflict between the Search function and Popup Maker, or that the Search function cannot handle popups correctly. I tried another Search function that comes with the theme, and it’s the same problem.
Right-clicking on a result that is dropped down, then selecting “Inspect” will allow you to look at the code, and you can see it has a href attached. Or just hovering over it, you’ll see it leads to a link in the bottom left of your browser.
How are you triggering the popup – which method are you using as lined out in our Click Open Trigger doc?
Each search result is being linked to
thinkof.co/popup/charlie-chaplin/
and that’s not normally how popups should be triggered. Those links are getting added some how and our plugin wouldn’t do that.Do you have an example of where it’s working properly as intended?
Thanks! If you click on any name/link on the Models page (2nd top menu), you’ll get popups that work, and all popups were created the same way. I never used an HREF.
If that is a type of live search plugin, I would consider contacting their support as this doesn’t seem to be an issue with our plugin as much as it theirs.
I wouldn’t necessarily even call it an issue, it’s just that you need to use their plugin in a little different way.
Instead of having the search results trigger a
href
with a normal URL structure (http), it should generate an URL structure exactly like#popmake-100
, as that is one of the methods available to trigger a popup.I don’t know if their plugin can even do that, it might require modifying the code, but then if you have other results where you don’t want to trigger a popup, that could cause issues as well.
Hope that helps.
Thanks! I did contact them about their Search function, but it seems that it has to do with Popup Maker given that the same problem occurs with the default WordPress Search function (I use both, each on a different page). All the popups that I created are exactly the same (except in content). The question remains: Why do they work perfectly everywhere on the website except within the Search function? It’s only in the Search function that the popups use href’s. How can I manipulate the Search function and/or Popup Maker to avoid this?
I’ll see if the Lead Dev @danieliser can offer his advice as soon as possible.
Thanks for your patience.
Thanks!
@pmohana – This likely is only the case when you are logged in as an admin who can edit those popups, otherwise they are not publicly available and will not show up in search results. If they show up when your not logged in and cache has been cleared, then @waltmesser is correct that there is a plugin on your site modifying the search results, something we can’t help from our end.
To clarify, they shouldn’t appear in search results. But popups can work on the search results pages using the normal method of setting conditions properly.
Hope that helps.
- This reply was modified 8 years ago by Daniel Iser.
Hi:
It happens whether I’m logged in or not and whether I’ve cleared the cache or not. I don’t see any plugin that may change the search results. It remains strange that it only occurs in the Search function because anywhere else the popups work fine.
Patrick
I’ll have @danieliser offer his advice, but we’ve both confirmed it has to be another plugin changing those search results like that – I’m assuming it’s the Live Search plugin because that’s the one related to the search results.
I did find a solution. I simply eliminated all popups and replaced them with pages. It took time, but the result justified the means.
@pmohana – Glad you found the best solution for your needs. Sorry we couldn’t help you get it working correctly.
- The topic ‘Upon closing popups in Search, pages appear empty’ is closed to new replies.