• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Adding logo to site title – Able Them

Adding logo to site title – Able Them

  • Unknown's avatar
    jaimegaranflo · Member · Aug 21, 2013 at 6:12 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hello. I’ve read many posts on this topic, but none seem to work for me. I’m using the Able theme and want to add my logo to the left of the site title. It doesn’t work as the header image because that makes the image huge.

    I’m using a child theme. The image I want to insert is in my media library and called GM-LTBlue-WEB.gif.

    My latest attempt is using this code in the the header.php. It shows a little icon that looks like a torn picture where the image should be, but not the image itself.

    <h1 class=”site-title”>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><img id=”GM-LTBlue-WEB.gif” src=”<?php echo get_stylesheet_directory_uri(); ?>/images/GM-LTBlue-WEB.gif” alt=”” /><?php bloginfo( ‘name’ ); ?></h1>

    I added this to the stylesheet after seeing a post and thinking it might help, but no change.

    .site-header hgroup { display: none; }
    .site-logo { max-width: 100%; height:auto; }

    I would really appreciate some help. I am not a coder – just a small business person trying to create my website with a logo who took a WordPress class online which did not include doing any editing like this, so I’m sure I’ve mucked something up.

    Thanks.

    Jaime

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

  • Unknown's avatar
    jaimegaranflo · Member · Aug 21, 2013 at 6:13 pm
    • Copy link Copy link

    The web site I need help with is http://www.gandmconsult.com.

    Hello. I’ve read many posts on this topic, but none seem to work for me. I’m using the Able theme and want to add my logo to the left of the site title. It doesn’t work as the header image because that makes the image huge.

    I’m using a child theme. The image I want to insert is in my media library and called GM-LTBlue-WEB.gif.

    My latest attempt is using this code in the the header.php. It shows a little icon that looks like a torn picture where the image should be, but not the image itself.

    <h1 class=”site-title”>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><img id=”GM-LTBlue-WEB.gif” src=”<?php echo get_stylesheet_directory_uri(); ?>/images/GM-LTBlue-WEB.gif” alt=”” /><?php bloginfo( ‘name’ ); ?></h1>

    I added this to the stylesheet after seeing a post and thinking it might help, but no change.

    .site-header hgroup { display: none; }
    .site-logo { max-width: 100%; height:auto; }

    I would really appreciate some help. I am not a coder – just a small business person trying to create my website with a logo who took a WordPress class online which did not include doing any editing like this, so I’m sure I’ve mucked something up.

    Thanks.

    Jaime

    The web site I need help with is http://www.gandmconsult.com.

  • Unknown's avatar
    jaimegaranflo · Member · Aug 21, 2013 at 6:14 pm
    • Copy link Copy link

    OMG – I can’t seem to get the web site that I need help with correct.

    It’s dev.gandmconsult.com.

    Thanks!

  • Unknown's avatar
    thesacredpath · Member · Aug 21, 2013 at 9:06 pm
    • Copy link Copy link

    Jaime, I can’t help with the PHP solution, but I can give you a quick and easy CSS solution as outlined below. Upload your logo to your media library, get the URL of that image and replace “URL OF IMAGE” in the code below with the full URL of your uploaded image (starting with http://). You can then adjust the location of the text with the text indent in the second rule below.

    #site-introduction {
    background: url("URL OF IMAGE") no-repeat scroll left top transparent;
    }
    
    .site-title, .site-description {
    text-indent: 120px;
    }

    Here is a screenshot with a 100 x 150 red square image using the above code: http://flippintestblog.files.wordpress.com/2013/08/g-m.png

  • Unknown's avatar
    jaimegaranflo · Member · Aug 22, 2013 at 2:48 pm
    • Copy link Copy link

    Thanks so much! Now for the really stupid question. My image is uploaded to WordPress already. How do I find it’s URL?

  • Unknown's avatar
    jaimegaranflo · Member · Aug 22, 2013 at 5:07 pm
    • Copy link Copy link

    I found the image’s url and inserted it in the lines of code you sent me on the style sheet, but I still don’t see the image. Just an icon of a torn picture where the image should be.

    Do you have any ideas on why the image itself is not displaying?

    Thanks very much for your help.

    Jaime

  • Unknown's avatar
    thesacredpath · Member · Aug 22, 2013 at 7:55 pm
    • Copy link Copy link

    @Jaime, I’m not seeing the Able theme anymore on http://www.gandmconsult.com/ , I’m seeing something else I’m not familiar with, with some complex CSS. That one you will likely have to talk with the theme designer on. With Able, that is a theme we made, so we support that theme.

  • Unknown's avatar
    jaimegaranflo · Member · Aug 22, 2013 at 8:12 pm
    • Copy link Copy link

    It’s on dev.gandmconsult.com – which is what I’m working on developing now in wordpress. the other site is in production using website tonight from godadaddy. as soon as i can get the wordpress site ready, it will replace the other one.

  • Unknown's avatar
    thesacredpath · Member · Aug 22, 2013 at 8:51 pm
    • Copy link Copy link

    Ah yes, the dev site. I forgot that.

    This is based on the image that I saw in the background, which was showing at the top right when I visited your site (200px square). I used Firebug in Firefox to do this which typically works pretty well, but it can sometimes trip one up. Since I had an image to work with, I was also able to make a few other adjustments to work with your specific image.

    Since I can’t work directly in your CSS, I can’t make sure all the following will work seamlessly. It might be that an !important attribute or two may be needed

    Add the following to the very bottom of your main theme CSS stylesheet, which you can edit at Appearance > editor.

    #site-introduction {
    background: url("http://dev.gandmconsult.com/wp-content/uploads/2013/08/GM-LTBlue-WEB1.gif") no-repeat scroll left top transparent;
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
    min-height: 200px;
    }
    
    .site-title, .site-description {
    margin-left: 170px !important;
    }
    
    .site-title {
    padding-top: 40px;
    }

    With a self-hosted installation, I would recommend either creating a child theme, or using the Custom CSS editor that is part of the Jetpack plugin created by WordPress.com. This will prevent any future updates to the theme from overwriting your CSS customizations.

  • Unknown's avatar
    jaimegaranflo · Member · Aug 22, 2013 at 9:55 pm
    • Copy link Copy link

    Thank you! It worked. I thought I had created a child theme from Able and was making the changes there, but I realized later I wasn’t. Thanks for the tip on the Custom CSS editor – that’s what I used to paste in the code you gave me.

    Of course, it brings up one more question – I can’t seem to figure out how to indent my site title and description more to the right to allow room for the logo. Can you tell me how to do that?

    Thanks very much!

  • Unknown's avatar
    jaimegaranflo · Member · Aug 22, 2013 at 9:57 pm
    • Copy link Copy link

    Never mind – it fixed itself when I removed the right-justified background image of the logo that I was playing around with!

    It looks great – I really appreciate your assistance.

  • Unknown's avatar
    thesacredpath · Member · Aug 22, 2013 at 10:07 pm
    • Copy link Copy link

    You are very welcome.

  • The topic ‘Adding logo to site title – Able Them’ is closed to new replies.

Tags

  • logo
  • site title

About this topic

  • In: CSS Customization
  • 2 participants
  • 11 replies
  • Last activity 12 years
  • Latest reply from jaimegaranflo

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions