No results found. Try again with different words?

Search must be at least 3 characters.

How To Disable Logo Cropping

Sidebar Image

Did not find a solution? We are here to help you succeed.

You can add a logo from Customizer settings at Site Identity > Site Title & Logo Settings.

By default, Astra resizes the logo and physically crops it in the appropriate aspect ratio.

But sometimes you might have a logo image of perfect size and need to display it without cropping. In this case, you can use the following filter to disable default cropping by Astra.

The following filter will disable cropping by Astra. The exact logo image will be uploaded as the logo. If you need to resize it, you will need a custom CSS.

add_filter( 'astra_resize_logo', '__return_false' );

Add the above filter into the child theme’s functions.php file. If you are not sure, how to do this, here is an article that will guide you through.

For any questions, feel free to reach out to our support team. We’re always here to help!

Was this article helpful?
Sidebar Image

Did not find a solution? We are here to help you succeed.

Related Docs

Join 1,653,898+ Happy Site Owners Using Astra

Whether you are a beginner, small business owner, or professional web developer, Astra provides all the tools you need to easily build your beautiful WordPress website.

Download is Just A Click Away!

Membership Retention Checklist Download

REWIND

YEAR IN REVIEW

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Download Free Astra Theme - Modal Popup Form
Scroll to Top
Now choose your preferred
page builder addon
Choose your preferred page builder addon

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Download Free Astra Theme - Modal Popup Form