Fixed Out of date browser message in search results

Affected version
2.2

Chromaniac

Well-known member
Sample Search

I do not think I noticed this on my site on 2.1 though it's possible.

Code:
<noscript><div class="blockMessage blockMessage--important blockMessage--iconic u-noJsOnly">JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.</div></noscript>
<div class="blockMessage blockMessage--important blockMessage--iconic js-browserWarning" style="display: none">You are using an out of date browser. It may not display this or other websites correctly.<br />You should upgrade or use an <a href="https://www.google.com/chrome/" target="_blank" rel="noopener">alternative browser</a>.</div>

this code is present in all page loads. i guess this is not a new thing and google search is just picking it up as page description for search result pages like usual? the ones which does not have a properly defined description. in my case, it mostly appears for nodes that do not have description written in backend. maybe i should add them now!
 

briansol

Well-known member
Seems like they should bring Chris's add on back?


In any case, the markup should be much further down the page and surfaced with css/etc into a relative/abs position div (without causing CLS) so that the search engines don't pick it up as the most valuable content
 

Mike

XenForo developer
Staff member
We have made a tweak here, but generally examples like this don't tend to manifest in "real" searches. The other common example of this is a site: search with no other keywords, where Google will basically guess in terms of the text to display.
 
Top