Site logo

Archived topic

mysterious element behavior

5 replies · Started by Leslie on January 20, 2022

Viewing posts 1–6 of 6

Hi, I am using a hook element to add a horizontal line before each post title on search results and archive pages. The <hr> element works perfectly on archive pages. But very strangely, the <hr> elemement sometimes shows, and sometimes doesn't, on search results pages. I have tried a million variations in my style.css and the hook element to try to make it work reliably, to no avail. Below are two of my search results pages, the first where the <hr> shows, and the second where it doesn't.

https://staging-lexata.kinsta.cloud/?s=interim+period

https://staging-lexata.kinsta.cloud/?s=interim+financials

Have you seen a problem like this before? Any idea what's wrong?

Login credentials for front end and wp admin below. Thanks! Leslie

Hi there,

in the display rules - what happens if you add another Location: No Results ?

That solves my problem! I have no idea why, but who cares! Thanks so much.

I think your AI Search loop finds stuff that WP search doesn't so the template it uses is the search-no-results template, in your case that template is identical to one with results ... so it don't really matter :)

Ok cool, thanks again.

You're welcome

This archived topic is closed to new replies.