Viewing 4 replies - 1 through 4 (of 4 total)
  • I think you need to be adding that as a class – in header.php (which is where I assume you are?) find the block of code for your site title and edit the <h1> tag to say <h1 class="site-title">.

    Thread Starter oliviaok

    (@oliviaok)

    hi duck boy, i know how to find it and use it.

    the problem is i dont want to display the text on my site as i have a image header with the title already but i do what do add a h1 for seo purposes, but if i do it displays in my site which is not the affect im after, any other suggestions?

    thanks for the reply

    olivia

    Ah, with you.

    In header.php –
    <h1 class="site-title">Your title</h1>

    In your CSS –

    h1.site-title{
        display: none;
    }

    Check the page source, it should still be there, it’s just not being displayed to the user. Be careful though, as Search Engines (particularly Google) are very aware of hidden content and can sometimes actually drop your page if it thinks you are being cheeky. One field like that shoul be fine though.

    Another option for SEO is to add title="Your Title" to the image tag for the header image – Google likes that.

    Hi, Reading the above, I might have a similar issue but I can’t duplicate Oliviaok’s success on this.

    My website is: https://techtechy.com and when using Mozbar it tells me I’ve got no H1 tile in place.

    I’ve reviewed my HTML in line of what was said above and realized only my RSS feed has a H1 title.

    How would I go about getting the H1 title recognized by Mozbar please?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘h1-site title, i wish to add this but…..’ is closed to new replies.