close

April 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 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #3252 Reply
    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 Reply
    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 Reply
    Roger
    Guest

    This page

    Installation

    #3267 Reply
    Deborah
    Guest

    interesting…

    #3315 Reply
    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 Reply
    Arthur
    Guest

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

    #8842 Reply
    Kelly
    Guest
    #9655 Reply
    Raymond
    Guest
    #22199 Reply
    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.

    #23510 Reply
    Janet
    Guest

    premium manual latency outstanding launches innovative

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Proof that Google bots consider CSS classes and IDs for SEO

Thanks to our generous sponsors for their support!