• 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 / Site Logo

Site Logo

  • Unknown's avatar
    leoceasar18 · Member · May 25, 2017 at 9:39 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hello guys!

    In this template whenever I put a personal logo, it will automatically resize the logo to its fixed width of 520px. I want it put this image as my site logo https://blaineislostph.files.wordpress.com/2017/05/blaine-is-lost-header1.jpg

    at the same time, the width will also adjust whenever it will be viewed on mobile. is that possible through css? thanks

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

  • Unknown's avatar
    thesacredpath · Member · May 25, 2017 at 8:30 pm
    • Copy link Copy link

    Hi, let’s do this with CSS instead and put the image into the site title div. First thing you will want to do is to crop your original PNG image tightly around the text in that image, upload that image to your media library and then use that URL in the background declaration in the following CSS. It may be that after you do this, we have to make a few adjustments. Lets get that done and then go from there. Go to Customize > CSS, delete all the informational text in that window, and paste in the following custom CSS.

    #site-branding .site-title a {
    	background: url('https://blaineislostph.files.wordpress.com/2017/05/header-one.png') no-repeat scroll center center / auto;
    	display: block;
    	color: transparent;
    }
    @media screen and (max-width: 1059px) {
    	#site-branding .site-title a {
    		background-size: contain;
    		background-position-x: left;
    	}
    }
  • Unknown's avatar
    leoceasar18 · Member · May 27, 2017 at 4:16 am
    • Copy link Copy link

    Big thanks man! But I have a problem with the code you have provided.
    Whenever I save and publish the theme with custom css, the background-position-x: left; is always removed.

    Also, the title image is overlapping the menu icon on the right when in mobile view, check the image:

    How to fix this? Thanks

  • Unknown's avatar
    thesacredpath · Member · May 27, 2017 at 4:37 am
    • Copy link Copy link

    Hmmm, that is strange. I tried it directly in your customizer and it was stripped out for me also. What I’ve done is to use the full background-position declaration (with both x and y). I went ahead and saved it in your customizer. Here is what it is now.

    @media screen and (max-width: 1059px) {
    	#site-branding .site-title a {
    		background-size:contain;
    		background-position:left center;
    	}
    }

    I’ll have to check into that and see why it is getting stripped out. It shouldn’t, it is valid CSS3.

  • Unknown's avatar
    leoceasar18 · Member · May 27, 2017 at 5:30 am
    • Copy link Copy link

    Thanks so much! The last problem is the image overlaps in the menu button on the right in mobile view mode.

    How to fix this? Thanks

  • Unknown's avatar
    thesacredpath · Member · May 27, 2017 at 10:23 am
    • Copy link Copy link

    For the overlap on smaller screens, add this after the other code you have.

    @media screen and (max-width: 400px) {
    	#site-branding .site-title a {
    		background-size: 90% auto;
    	}
    }
  • Unknown's avatar
    leoceasar18 · Member · May 28, 2017 at 2:45 am
    • Copy link Copy link

    Big thanks man! Really big help! :D

  • Unknown's avatar
    thesacredpath · Member · May 30, 2017 at 3:00 am
    • Copy link Copy link

    You are welcome.

  • The topic ‘Site Logo’ is closed to new replies.

Tags

  • Nikau
  • resize
  • site logo

About this topic

  • In: CSS Customization
  • 2 participants
  • 7 replies
  • Last activity 9 years
  • Latest reply from leoceasar18

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