-
AuthorPosts
-
February 17, 2020 at 11:57 pm #1185467
Hello,
Would you know the quick css code to enable my home page fullwidth easy slider captions and sub-captions for the mobile version with fonts that fit on the image dynamically when it switches from portrait to landscape on the phone and tablet.
Thank you kindly,
February 18, 2020 at 12:05 pm #1185612Hey haines1,
Please try the following in Quick CSS under Enfold->General Styling:
Landscape:
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) { .slideshow_align_caption h2 { font-size: 24px; } .avia-caption-content p { font-size: 18px; } }
Portrait:
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) { .slideshow_align_caption h2 { font-size: 20px; } .avia-caption-content p { font-size: 14px; } }
Best regards,
RikardFebruary 19, 2020 at 3:14 am #1185894This reply has been marked as private.February 19, 2020 at 7:15 am #1185918Hi,
Did you add the code to the very top of quick css so it so it runs first? Also, be sure to clear the cache a few times over.
Best regards,
Jordan ShannonFebruary 19, 2020 at 8:31 am #1185934This reply has been marked as private.February 20, 2020 at 5:58 am #1186222Hi,
Thanks for the update, are you checking on a mobile phone? The CSS I sent will only apply to tablet screen sizes. Could you check that resolution first please?
Best regards,
RikardFebruary 20, 2020 at 7:09 am #1186236This reply has been marked as private.February 20, 2020 at 7:09 am #1186237Hi Rikard,
I do not have a tablet at this time. Can we optimize for PC and Smartphone for now?
Thank you.
February 21, 2020 at 10:18 am #1186643Hi,
Yes, you can simply change the pixel values in the media queries:
@media only screen and (max-device-width : 767px) and (orientation : landscape) { .slideshow_align_caption h2 { font-size: 24px; } .avia-caption-content p { font-size: 18px; } } @media only screen and (max-device-width : 767px) and (orientation : portrait) { .slideshow_align_caption h2 { font-size: 20px; } .avia-caption-content p { font-size: 14px; } }
Best regards,
RikardFebruary 27, 2020 at 7:17 pm #1188573This reply has been marked as private.February 28, 2020 at 10:12 pm #1188926Hi haines1,
Please try the code like this:
@media only screen and (max-device-width : 767px) and (max-width: 767px) and (orientation : landscape) { .slideshow_align_caption h2 { font-size: 24px !important; } .avia-caption-content p { font-size: 18px !important;; } } @media only screen and (max-device-width : 767px) and (max-width: 767px) and (orientation : portrait) { .slideshow_align_caption h2 { font-size: 20px !important; } .avia-caption-content p { font-size: 14px !important; } }
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.