• 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 / Resizing logo

Resizing logo

  • Unknown's avatar
    mkhanna5 · Member · Dec 28, 2016 at 1:43 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hi,
    I am trying to make my logo look a bit bigger. Can someone help me with the code so that it does not get distorted on desktop and mobile devices?

    The theme is pique.

    Thanks so much!

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

  • Unknown's avatar
    kathrynwp · Staff · Dec 28, 2016 at 5:17 pm
    • Copy link Copy link

    You could try something like this to double the height on larger screens, leaving the default size on small devices:

    @media (min-width: 600px) {
    	.site-branding .site-logo-link img {
    	    height: 200px;
    	}
    }

    You can adjust either number as you like.

  • Unknown's avatar
    mkhanna5 · Member · Dec 28, 2016 at 5:27 pm
    • Copy link Copy link

    Thanks kathrynwp! It looks fine on the larger screen now, as well as on mobile (horizontal layout). It’s still quite small in the vertical mode in mobile. Is there anything we can do about that?

  • Unknown's avatar
    kathrynwp · Staff · Dec 28, 2016 at 5:31 pm
    • Copy link Copy link

    You can use another media query to target smaller sizes. Here’s a good place to start learning about media queries:

    https://en.support.wordpress.com/custom-design/custom-css-media-queries/

    For example, this would target screens smaller than what you secified earlier:

    @media (max-width: 599px) {
    	.site-branding .site-logo-link img {
    	    height: XXXpx;
    	}
    }

    Replace XXX with your desired logo height for screens up to 599px.

  • Unknown's avatar
    mkhanna5 · Member · Dec 28, 2016 at 6:10 pm
    • Copy link Copy link

    Hi Kathrynwp! I suspect there might be a bug in the theme. In mobile, the menu bar overlaps the one liner ‘Giving maths class a makeover’. It’s acting a bit odd. Sometimes it overlaps and sometimes not. I can’t figure out what’s driving it. Any suggestions?

  • Unknown's avatar
    kathrynwp · Staff · Dec 28, 2016 at 8:30 pm
    • Copy link Copy link

    Looks like you can only go to about 80px high for the logo on small screens before the overlap happens. Anything bigger and it starts to push the menu down into that line of text. Try this instead of the earlier media query:

    @media (max-width: 599px) {
    	.site-branding .site-logo-link img {
    		height: 80px;
    	}
    }
  • The topic ‘Resizing logo’ is closed to new replies.

Tags

  • logo

About this topic

  • In: CSS Customization
  • 2 participants
  • 5 replies
  • Last activity 9 years
  • Latest reply from mkhanna5

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