Adding image to title

  • Author
    Posts
  • #141467
    zdranti
    Member

    Hi.

    I want to add a small image with the “logo” of my website to the yellow title button where it says “Carmack” on the page preview, instead of the actual text.

    Is this possible, and if so, how?
    Thank you.

    The blog I need help with is: (visible only to logged in users)

    #141530
    binarymoon
    Theme Author

    Hi there – it looks like you solved this. Are you ok with how it works now?

    By the way; since your site has a Business plan, you’re entitled to live-chat and email support from wordpress.com staff, accessible here:

    https://wordpress.com/help/contact

    I’m always happy to answer your theme related questions in this forum, but those other support avenues may be faster, and you’ll always get a wordpress.com staff reply.

    Thanks! – Ben

    #141576
    zdranti
    Member
    Original poster

    No, the way i did it is unsatisfactory (if there is a way to do the following)

    I’ve temporarily worked around it by putting it into the designated “logo” space within the theme, but had to remove the header menu to make it look closer to what i want, which is not ideal.

    I would like to have the logo image within the “site title” element (instead of the site title text), which would be below the header menu, or next to the “overlay” menu button.

    Is this possible?

    That is good to know, and i prefer asking you as the theme author :)

    #141583
    binarymoon
    Theme Author

    Ok – I understand what you mean. And yeah – no problem asking me these things :)

    Some custom css like the following will add your logo to the site title area.

    .masthead .branding h1.site-title {
        background: url(https://i1.wp.com/strongmarbles.com/wp-content/uploads/2019/03/SM-logo.png) no-repeat center;
        background-size: cover;
        text-indent: -999em;
        width: 16rem;
    }

    You will need to make sure to display your title again using the customizer.

    #141586
    zdranti
    Member
    Original poster

    That is perfect.

    Thank you very much.

  • The topic ‘Adding image to title’ is closed to new replies.