Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Duplicate of https://github.com/sybrew/the-seo-framework/issues/663. Let’s continue there.

    Plugin Author Sybre Waaijer

    (@cybr)

    You did have a support question in this:

    Also, any other ideas or bugs that can prevent to Google accept Site name?

    I checked all my sites for this behavior, and the major difference between those that did have the name and those that displayed the URL was this: The ones with a name had the title in the logo as text.

    I do not think it has anything to do with structured data.

    So, you need to put the site name in the title of the site. Currently, it’s only an image. I recommend wrapping the image in a <h1> element (you may have multiple <h1> elements).

    So, wrap the figure in an <h1> element, and add a span with ID site-title next to the image:

    <h1>
       <figure>
          <a href="/"><img><span id="site-title" aria-hidden="true">Site Name Here</a></a>
       </figure>
    </h1>
    

    Then, hide the text using this CSS:

    #site-title { 
        border: 0;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    You can also do a simple display: none;, but with the CSS above, the text is still selectable.

    I also recommend instead using the fully qualified URL to the homepage instead of using "/".

    Thread Starter Nuwif

    (@nuwif)

    I did exactly what you advised me to do. I’ll let you know as soon as I see any changes. Thanks a lot!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Site name is not displayed by Google + Schema.org: ‘alternateName’ is missing’ is closed to new replies.