• 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 / Logo in the site title

Logo in the site title

  • Unknown's avatar
    1dctcb · Member · Dec 6, 2012 at 9:22 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    hi, i would like to know if it’s possible to put an image in the site title of my blog. http://www.chiropractie-nijmegen.com
    i want to put a logo where it says A.H. Harter Chiropractie. Does anyone know if there’s a code for that?

    thanks.

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

  • Unknown's avatar
    designsimply · Member · Dec 27, 2012 at 5:48 am
    • Copy link Copy link

    Here is an example using a WordPress logo as the image:

    .site-header h1 a {
    	background: url('http://s.wordpress.org/about/images/logos/wordpress-logo-32-blue.png') left center no-repeat;
    	padding-left: 40px;
    }

    Add that to your Appearance → Custom Design → CSS page and click the Preview button.

    Note that you can change out the url() value to use a different image and adjust the padding as necessary.

  • Unknown's avatar
    1dctcb · Member · Dec 27, 2012 at 8:36 am
    • Copy link Copy link

    Thanks for the help,
    but it doesn’t show the logo… it just say’s “Preview: save changes before they get lost” where it should show the logo, and i have saved it.
    I tried it with the wp logo and my own logo.

  • Unknown's avatar
    designsimply · Member · Dec 27, 2012 at 9:30 am
    • Copy link Copy link

    I checked your cpAppearance → Custom Design → CSS edit page and you currently have the CSS you added commented out like this:

    /*
    .site-header h1 a {
        background: url('http://chiropractienijmegen.files.wordpress.com/2012/12/logo-06.jpg') left center no-repeat;
    	padding-left: 40px;
    }
    */

    Get rid of the /* and */ on the first and last lines.

  • Unknown's avatar
    michaeljchilds · Member · Feb 4, 2013 at 1:24 pm
    • Copy link Copy link

    Hi designsimply

    Thanks for the info, helped me! Please could you advise on how I would centre the logo, along with the header text.

    Cheers,
    Mike

  • Unknown's avatar
    kardotim · Member · Mar 4, 2013 at 6:07 am
    • Copy link Copy link

    Hi Michael, sorry for the delay. I added something to your CSS, this will centralize the header. See: https://chiropractienijmegen.wordpress.com/wp-admin/themes.php?page=editcss

    Feel free to contact us if you have any other questions.

  • Unknown's avatar
    designsimply · Member · Mar 4, 2013 at 10:54 pm
    • Copy link Copy link

    Thanks kardotim! It looks like you shifted the site title area to the left to simulate making it look centered with this CSS:

    .site-header h1 {
    	margin-left: 15%;
    }

    I think a better approach would be to make a smaller image that doesn’t have extra white space on the right like the one you’re currently using:
    http://chiropractienijmegen.files.wordpress.com/2012/12/site-header2.jpg

    Then you could remove the “left” keyword from the “background” property. Here is an example, replace this:

    background: url('http://chiropractienijmegen.files.wordpress.com/2012/12/site-header2.jpg') left center no-repeat;

    With this, and click preview:

    background: url('http://s.wordpress.org/about/images/wordpress-logo-notext-bg.png') center no-repeat;

    I also noticed that using the image technique I first recommended, it won’t adjust for small screen sizes like mobile devices. You can make a smaller version of the image and upload that as well to use for cases like that. Here is the CSS you would add:

    @media screen and (min-width: 600px) {
    	.site-title {
    		background: url('320_PIXEL_WIDE_VERSION_OF_THE_IMAGE') center no-repeat;
    	}
    }

    Replace 320_PIXEL_WIDE_VERSION_OF_THE_IMAGE with a link to a smaller version of your logo.

  • The topic ‘Logo in the site title’ is closed to new replies.

Tags

  • add logo
  • logo title header image
  • Twenty Twelve

About this topic

  • In: CSS Customization
  • 4 participants
  • 6 replies
  • Last activity 13 years
  • Latest reply from 1dctcb

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