close

May 2024 only! Join our Discord free of charge.

Slick­Stack
Lightning-fast WordPress on Nginx

Proof that Google bots consider CSS classes and IDs for SEO

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #3252
    Brian
    Guest

    For the last several months (1+ year maybe) SlickStack.io had the page /install linked 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 h1 tag 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”…

    #3253
    Jessica
    Guest

    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 yet

    #3254
    Roger
    Guest

    This page

    Installation

    #3267
    Deborah
    Guest

    interesting…

    #3315
    Gloria
    Guest

    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!

    #3436
    Arthur
    Guest

    are you sure it’s not because of something else? @SlickStack

    #8842
    Kelly
    Guest
    #9655
    Raymond
    Guest
    #22199
    Megan
    Guest

    If all you had changed was an element ID, I would maybe call that convincing. But you changed your entire theme which you said has a very different DOM structure. You haven’t exactly tested an isolated variable.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.

Thanks to our generous sponsors for their support!