I’m calling the Custom page heading image for this category on the product archive page, but I want it to be full-size. Right now, its size is reduced, and the quality drops.
What’s the solution?
This topic has 4 replies, 3 voices, and was last updated 16 minutes ago ago by Jack Richardson
I’m calling the Custom page heading image for this category on the product archive page, but I want it to be full-size. Right now, its size is reduced, and the quality drops.
What’s the solution?
Hello,
Thank you for reaching out to us.
Could you please provide temporary wp-admin access? We need to check your settings.
To grant WP-Admin access, please proceed to create a new user account with an administrator role through your WordPress Dashboard. Once the account is established, you may securely transmit the username and password to us via the Private Content section designated for this purpose.
Warm Regards,
The 8Theme Team
Private content
Dear @MAHDAR,
We have reviewed the issue, and the image is displaying correctly. However, you may notice a lower quality when viewing it on certain devices. This is due to the “srcset” attribute in WordPress, which adjusts image quality based on the device being used.
If you would like to disable the “srcset” functionality for images, you may find the following article helpful: https://perishablepress.com/disable-wordpress-responsive-images/.
Additionally, you can try adding the following code to your “child-theme/functions.php” file to disable “srcset” on the frontend:
// Disable srcset on frontend
function disable_wp_responsive_images() {
return 1;
}
add_filter('max_srcset_image_width', 'disable_wp_responsive_images');
Please let us know if you need any further assistance.
Best regards,
Jack Richardson
8Theme Team
You must be logged in to reply to this topic.Log in/Sign up