We’ve been working on a directory site and recently with the addition of the Mapbox API, we have noticed that there are now some Icons which appear in the Search’s Location field and there is also a second “All Categories” field which now appears.
These additional elements only appear when a user is logged out. When the user is logged in, then the additional elements are not displayed.
For the Mapbox icons, the Geocoder Button and Geocoder Icon Loading are elements which are displayed.
For the All Categories, the select2-selection__rendered is displayed.
If anyone has any guidance on how I can hide these elements, it would be appreciated.
Screenshots below.
Please disable third-party plugins and customizations (if there are any) and check if this issue persists. If you use a caching plugin, make sure that caching is disabled for logged-in users.
So I was able to troubleshoot and identify the issue after systematically turning off all plugins one by one and testing whether the icons and duplicate category displayed after the plugin was switched off.
Within the LiteSpeed Cache Plugin, there is a setting under Page Optimization to Generate UCSS.
Once I turned this setting off, the additional Mapbox Icons and duplicate Category label did not display on hard refresh (CTRL-F5) of the page.