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

    (@cybr)

    Hello!

    This is a common issue when Google doesn’t know the exact site name.

    For Google to use your site name instead of the URL, the site title must be in an <h1 id=site-title> element on the homepage. This is the most effective method I’ve found from similar requests in the past. I recommend putting it next to your logo, inside the <a> element, and hiding that text with this CSS so only your logo image shows:

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

    This CSS mimics “screen reader text” behavior, meaning that if someone selects and copies the logo image, they’ll get the site name instead. Screen reader software used for vision-impaired accessibility will also speak the site name out loud.

    For the <h1> element, I recommend using the value of the “Site Title” field at “WP Admin > Settings > General.” This setting should exclusively contain the site (brand) name; I see you’ve already done that correctly.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.