I'm having a little dilemma, i want to show a certain text/link only to certain user agent, like Google and Yahoo, and for other user agent to be hidden.
Like to not be visible for people that are accessing the website from Firefox, Chrome etc.
Can you help me?
CodePudding user response:
You Can actually hide them using css property display: none;
after grabbing the html class or id, this will still be available to google bots and other seo crawlers because it's still available on your sitemaps, its what i personally used on my website to hide tags and other things that will make the website bulky for users.
if you can add a link to the website, i can help you better with some more codes