Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Searchbar UI fails on first page load
This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 1 year, 4 months ago.
- AuthorPosts
- December 11, 2022 at 1:35 pm #40488
Hi,
first of all: I enjoy your plugin!
But now that I implemented it, everytime I click this link https://testydaddy69420.bearmarket.io/doxxed-projects/ for the first time or navigate thru the menu to this site (Menu: Doxxed Projects), the UI of the search plugin is broken. When I reload the page, everything looks good again.
How to make it look good right from the start?
Thanks!
Best
MichaelAttachments:
You must be logged in to view attached files.December 12, 2022 at 2:11 pm #40499Hi Michael,
Sure! The issue is caused by the theme live loader feature. When I switch to the “Doxxed projects” menu, the page does not reload, but instead the theme script live loads the page, and injects it into the current content. It is a very generic loader and it unfortunately it does not check for header changes, so it does not add the stylesheets from the loaded page, and the search appears to be broken.
Luckily we have dealt with similar issues. I have logged in and changed the following options: https://i.imgur.com/beG4o5E.png
Best,
This resolves the issue by loading the stylesheets and scripts preemptively, so it is no longer missing from the headers.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.