• 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 / Add a Logo to the Header

Add a Logo to the Header

  • Unknown's avatar
    aselynn · Member · Feb 26, 2014 at 4:50 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    I’d like to add a logo to our header through CSS, instead of just having it in the right-hand widget column on each page. (In the tablet/mobile versions of the site, you don’t see the logo at all until the bottom of the page, and that just doesn’t work for me.)

    Yes, I could edit the header image in Photoshop and put the logo in on top, but I’d rather do it through CSS as an element on the page.

    Thanks

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

  • Unknown's avatar
    thesacredpath · Member · Feb 27, 2014 at 6:17 pm
    • Copy link Copy link

    Hi, this can be done pretty easily. To make the logo readable at smart phone sizes and be fully visible, you need to create one of the following. For replacing the site title and the tagline/description, 275px wide by 175px tall. For replacing the site title only, 275px wide by 140px tall. Create it as a PNG image with no background color (transparent) and then upload that to your media library. I suggest cropping the images tightly. Get the URL of that image and then replace URL_OF_IMAGE between the quote marks in the appropriated code below and paste the code into your custom CSS edit window at Appearance > Customize > CSS (delete all the informational text in that window).

    For replacing the title only (this hides the existing text title also):

    .site-title {
        background: url("URL_OF_IMAGE") no-repeat scroll left bottom rgba(0, 0, 0, 0);
        color: rgba(0, 0, 0, 0);
        height: 170px;
        width: 275px;
    }

    For replacing the text title and tagline/description (this hides the existing title and tagline also):

    .site-title {
        background: url("URL_OF_IMAGE") no-repeat scroll left bottom rgba(0, 0, 0, 0);
        color: rgba(0, 0, 0, 0);
        height: 205px;
        width: 275px;
    }
    
    .site-description {
    display: none;
    }
  • The topic ‘Add a Logo to the Header’ is closed to new replies.

Tags

  • Header
  • Header image
  • image
  • logo
  • replace site title with logo
  • Twenty Thirteen

About this topic

  • In: CSS Customization
  • 2 participants
  • 1 reply
  • Last activity 12 years
  • Latest reply from aselynn

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