Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
What do you mean load scripts to hide them from Google? JavaScript will append those links to the DOM if you want it to be on your Webpage. Google reads the DOM, and I’m pretty sure it reads your JavaScript files too.
I mean this: on jameda.de, there is a breadcrumb navigation with pulldown menu style. If you search for a city, in the breadcrumb you can pull down the city and you see nearby cities and other cities. If you hover over the nearby cities, you see a link in the status bar of your browser but if you hover over “other cities” you see no link. These links – for the user – open like normal links but for google they are invisible.
How can this be done ?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Okay so I looked at the code behind this, and they’re not actually links at all. They’re <span> elements that use JavaScript to apply link-like behaviour to them. Is that what you want?
Yes, that’s what I want. Do you know a Plugin that does something like this ?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Unfortunately I couldn’t find such a plugin on the search terms, “Turn links into spans”, however you could write a certain script that does that for you. Are you solely going on the basis that this will hide the links from Google? It won’t exactly hide the link because the link never exists.