Proof that Google bots consider CSS classes and IDs for SEO
- This topic is empty.
December 5, 2022 at 8:30 am #3252BrianGuest
For the last several months (1+ year maybe) SlickStack.io had the page
/installlinked in the menu using the phrase “Install Guide”
However, our site links and the page title in SERPs was always “Installation” which is the same as the
h1tag on that page… in order words, Google disregarded the menu anchor text.
Then suddenly a few days after we changed to our new HoverCraft theme, which has better DOM structure and CSS classes, the site link is now “Install Guide”…December 5, 2022 at 8:32 am #3253JessicaGuest
So this is pretty much as good proof as ever that Google bots do consider the CSS classes and IDs in your DOM elements for some things…
In this case it seems having an above-the-fold CSS class with the word “menu” in it had a big effect, even though our mobile menu is not functional yetDecember 5, 2022 at 8:34 am #3254RogerGuest
This pageDecember 5, 2022 at 2:36 pm #3267DeborahGuest
interesting…December 8, 2022 at 4:48 am #3315GloriaGuest
I have wondered about this for a long time, usually I try to choose logical CSS ID but wasn’t sure it was understood by Google!December 16, 2022 at 6:47 am #3436ArthurGuest
are you sure it’s not because of something else? @SlickStackNovember 6, 2023 at 6:28 am #8842November 24, 2023 at 4:34 pm #9655