-
AuthorPosts
-
September 19, 2023 at 1:47 pm #1419569
Hello, i put like a widget an image on the footer that is ok for the desktop version but too big for phone.
How to set on the html code (widget) different dimensions?
ThanksSeptember 21, 2023 at 1:47 am #1419795Hi Stilecatalini,
Please try to use srcset in the html code, here’s an article that should be helpful: https://css-tricks.com/a-guide-to-the-responsive-images-syntax-in-html/#using-srcset
Best regards,
NikkoSeptember 21, 2023 at 10:32 am #1419861Sorry Nikko but it’s so difficult for me. If you check my website you will see that (on the footer) the logo: on desktop version is ok, on mobile is too big.
That image is on the widget like HTML. Check please.September 21, 2023 at 10:36 am #1419863Hello,
You can try decreasing the width by adding the following CSS to the Enfold theme options > General Styling > Quick CSS:
@media only screen and (max-width: 767px) { #custom_html-4 img { max-width: 150px; } }Regards,
YigitSeptember 21, 2023 at 11:46 am #1419875Doesn’t work… Check.
September 21, 2023 at 12:39 pm #1419897Hello,
Please make sure there aren’t any CSS errors in your custom CSS. You can use this website http://csslint.net/ to check for errors.
If there aren’t any errors, make sure to clear plugin-based and server-side caches.
Regards,
YigitSeptember 21, 2023 at 1:52 pm #1419905Could you check? Thanks
September 21, 2023 at 1:53 pm #1419906I have removed that css. Try you please. Thanks
September 21, 2023 at 3:04 pm #1419917Hello,
As I mentioned in two of your threads, there were CSS errors in both the Quick CSS field and in the Appearance > Customize > Additional CSS ( https://i.imgur.com/VCnbPvo.png ).
I fixed them and added this custom CSS code ( https://kriesi.at/support/topic/widget-image-dimensions-only-phone/#post-1419863 ) and it works as expected.
Regards,
YigitSeptember 21, 2023 at 4:11 pm #1419928Ok. Thanks!
-
AuthorPosts
- The topic ‘Widget image dimensions (only phone)’ is closed to new replies.
