This topic has 2 replies, 2 voices, and was last updated 2 weeks, 6 days ago ago by Luca Rossi
“I am using a banner with a mask element on this page
https://anandk60.sg-host.com/test-for-careers/
and need to adjust or reduce the image size. Despite trying various values, the changes are not taking effect. How can I resolve this issue?
Dear Merin,
We hope this message finds you well.
The appropriate dimensions for the banner image should be 50×50 or one of the predefined sizes such as thumbnail, medium, or large. However, it seems that the srcset
attribute generated by WordPress is forcing the image width to 100%.
To address this issue, we recommend adding the following custom code to the functions.php
file located in your child theme. This will disable the srcset
functionality:
add_filter( 'wp_calculate_image_srcset', '__return_false' );
Please let us know if you need further assistance or have any questions.
Best regards,
The 8Theme Team
You must be logged in to reply to this topic.Log in/Sign up