Support » Fixing WordPress » How can I hide my site title

  • Resolved oliviaontheriviera

    (@oliviaontheriviera)


    [Moderator note: Please do not uppercase your sentences]

    Hello all,
    I would like to know how to keep my site title (for SEO purposes) but hide it from my site http://www.oliviaontheriviera.com
    because I am using a logo instead.
    In the appearance=> customize menu I only have the option to hide my tagline, not my website title. The only solution I have found so far is by not putting in a website title.
    I have tried adding `.site-title {
    display:none;
    }`
    to the style.css file in my child theme but this doesn’t do anything. Can anybody help? I’m running the Graphy theme.

    Many thanks!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Steve

    (@seekerabroad)

    Hi,
    Google is a lot smarter now, so putting the site title in the alt attribute of your logo image is sufficient. You don’t need a hidden title anymore.

    Thread Starter oliviaontheriviera

    (@oliviaontheriviera)

    Really? Genius!
    Can I check that in media library, go to the file then alternative text?
    Thanks

    Steve

    (@seekerabroad)

    Absolutely!

    Cheers!

    Thread Starter oliviaontheriviera

    (@oliviaontheriviera)

    Thanks Steve,
    Just did it. If that’s enough then that’s great.
    Only thing with that is that in browser window the name doesn’t show, just the tagline.

    hiding the site title with CSS should have worked, but there are some errors in style.css of your child theme;

    A – a stray */ after the @import line;

    B – the wrong use of a CSS id (#site-title) instead of a CSS class (.site-title);

    to get it to work, the respective part of style.css should look like:

    @import url("../graphy/style.css");
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */
    .site-title {
    display:none;
    }
    Thread Starter oliviaontheriviera

    (@oliviaontheriviera)

    Thank you alchymyth, that worked!!
    Thank you all for your help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How can I hide my site title’ is closed to new replies.