Skip to content

Tony Perez

Tony Perez

  • Home
  • Posts
  • Tools
    • Palworld Progress Tracker
    • Currency Converter
    • Hex to RGB Converter
    • Weight Converter
    • Word & Character Count
  • Ultra Fast UK Web Hosting
  • Home
  • Posts
  • Tools
    • Palworld Progress Tracker
    • Currency Converter
    • Hex to RGB Converter
    • Weight Converter
    • Word & Character Count
  • Ultra Fast UK Web Hosting
Quick Reads
  • Bypass Radio Garden Block In The UK
  • How To Play OSRS In Fullscreen (RuneLite)
  • How To Export Your Amazon Orders To Excel
  • Automatically Post OSRS Notifications To Discord
  • How To Add Image Borders To Ivanti Knowledge Base Articles
  • How To Fix Fishing Bug in Palia
  • New Microsoft Teams Suddenly Crashing During Calls or Meetings
  • How To Find Full Network Path Of Mapped Drive
  • Quick Guide to Restore Corrupt World Save in Palworld
  • Palworld Progress Tracker – 300+ Completionist Achievements
  • How To Save Existing Table Style In Microsoft Word
  • CSM Option Greyed Out in BIOS
  • Orange DRAM Light, No Display
  • Fix Fire Stick Bluetooth Audio Delay (Alexa)
  • How To Pause Task Manager
  • OW2 Fix: Health Bars Disappeared While Healing
  • Outlook Automatically Creates Teams Meeting When Inviting Attendees
  • Alexa Fix: ‘Make Sure Your Devices Are On The Same Wi-Fi Network’
  • Office Applications Freezing When Making Formatting Changes
  • External SharePoint Verification Code Email Not Received
Home>Guide>WordPress>Skip Cropping Logo in WordPress
WordPress

Skip Cropping Logo in WordPress

Tony
August 27, 2022

I recently encountered an issue within WordPress for my website Smooth Web Hosting. No matter what I tried, even if I saved the image as the correct size, WordPress would always prompt me to crop the image I used for my site logo (within Customise -> Site Identity). This would result in the image being displayed with lower quality than it should.

Here is some code that you can add to your functions.php file (I strongly recommend creating a child theme and adding it to that instead of your main theme files) which will let you skip the logo cropping stage in WordPress:

function logo_size_change(){
	remove_theme_support( 'custom-logo' );
	add_theme_support( 'custom-logo', array(
	    'height'      => 82,
	    'width'       => 240,
	    'flex-height' => true,
	    'flex-width'  => true,
	) );
}
add_action( 'after_setup_theme', 'logo_size_change', 11 );

Be sure to change the height and width figures to your desired size.

Related Articles

WordPress

Change WordPress Editor Font

WordPress

Enable Custom Fields & Screen Options in WordPress Editor

Logo for showing categories in permalink/breadcrumbs for WordPress WordPress

Show All Categories In Permalink and Breadcrumbs in WordPress

WordPress

Change ‘Archives’ Text In WordPress

WordPress

Access Additional CSS + Old Customizer In WP 5.9

Latest Posts

  • Bypass Radio Garden Block In The UK
  • How To Play OSRS In Fullscreen (RuneLite)
  • How To Export Your Amazon Orders To Excel
  • Automatically Post OSRS Notifications To Discord
  • How To Add Image Borders To Ivanti Knowledge Base Articles
  • How To Fix Fishing Bug in Palia
  • New Microsoft Teams Suddenly Crashing During Calls or Meetings
© 2025 Tony Perez | WordPress Theme Ultra Lite