• 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 / Change the Logo Size without changing image quality.

Change the Logo Size without changing image quality.

  • Unknown's avatar
    bchan90 · Member · May 4, 2015 at 11:50 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    I don’t actually need help with this but it was something I was working on modifying for a while and know quite a few people had questions about.

    I know there’s another (or more) posts trying to change the size of the logo without “blurring” the picture. If all you did was change the CSS then it will blur the image.

    I changed ever width variable for the logo (functions.php, custom_header.php, and style.css). The most important change I made was more of a trick of the computer. Penscratch automatically crops the logo to fit the dimensions. Even with the modified code, the logo image used is still the cropped image.

    All that has to be done is to take your ORIGINAL logo image (make sure it aligns with the dimensions you changed in your code). For me, WordPress/Penscratch made the source image with a title of ./wp-content/uploads/[year]/[month]/[orig_logo_file]-300×96.jpg

    I made a copy of that file and renamed it, then renamed my ORIGINAL logo to [month]/[orig_logo_file]-300×96.jpg and copy and pasted to directory ./wp-content/uploads/[year]/[month]

    Because the image dimensions are taken from a .js code, it will read the dimensions of the image with that filename, somewhat tricking the code. Hope this helps! Any questions and I will follow-up :)

  • Unknown's avatar
    justjennifer · Member · May 5, 2015 at 6:31 pm
    • Copy link Copy link

    I changed ever[y] width variable for the logo (functions.php, custom_header.php, and style.css).

    We can’t edit our PHP files here on WPcom. Perhaps you intended to post this in the support forums for sites using the standalone WP software? If so, https://wordpress.org/support/ specifically https://wordpress.org/support/theme/penscratch

    For clarity: https://en.support.wordpress.com/com-vs-org/

  • The topic ‘Change the Logo Size without changing image quality.’ is closed to new replies.

Tags

  • Penscratch
  • site logo
  • wp.org?

About this topic

  • In: CSS Customization
  • 2 participants
  • 1 reply
  • Last activity 11 years
  • Latest reply from bchan90

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