_yohandeschamps_ Posted February 3 Share Posted February 3 (edited) Hello, I injected some code to get the caption, centred on images in the Reel. If I want the caption to look good on mobile, I have to set it around 25px, which is way too small on Desktop. so I need a different font size on mobile. I coded some lines but can't make it work. @media only screen and (max-width:767px) { .gallery-reel{ height:40vh!important } .gallery-reel-item{ height: inherit!important } .gallery-reel .gallery-caption-content{ font-size: 25px !important; } } Any help will be appreciated. Thank you Site: https://www.yodeschamps.com/ Edited February 3 by _yohandeschamps_ Missed some infos Link to comment
Web_Solutions Posted February 4 Share Posted February 4 On 2/3/2024 at 9:43 AM, _yohandeschamps_ said: Hello, I injected some code to get the caption, centred on images in the Reel. If I want the caption to look good on mobile, I have to set it around 25px, which is way too small on Desktop. so I need a different font size on mobile. I coded some lines but can't make it work. @media only screen and (max-width:767px) { .gallery-reel{ height:40vh!important } .gallery-reel-item{ height: inherit!important } .gallery-reel .gallery-caption-content{ font-size: 25px !important; } } Any help will be appreciated. Thank you Site: https://www.yodeschamps.com/ Are you telling about this gallery? If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Link to comment
_yohandeschamps_ Posted February 4 Author Share Posted February 4 Correct. It is not a reel anymore, but I get the same issue. I want the text bigger on the desktop than on the mobile. 🙂 Link to comment
Web_Solutions Posted February 4 Share Posted February 4 2 hours ago, _yohandeschamps_ said: Correct. It is not a reel anymore, but I get the same issue. I want the text bigger on the desktop than on the mobile. 🙂 Add these code on Custom CSS panel in Website > Utilities > Website Tools > Custom CSS. @media only screen and (max-width: 767px) { section[data-section-id="65ad68f5809d524e0ab92bfc"] .gallery-slideshow .gallery-caption-content { font-size: 25px !important; } } If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Link to comment
_yohandeschamps_ Posted February 4 Author Share Posted February 4 Yeah, I tried this code before. I reinstalled it to try, but unfortunately, it does not appear to work. Link to comment
Web_Solutions Posted February 5 Share Posted February 5 18 hours ago, _yohandeschamps_ said: Yeah, I tried this code before. I reinstalled it to try, but unfortunately, it does not appear to work. Did you add the code? I can't see that you have added the code If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Link to comment
_yohandeschamps_ Posted February 6 Author Share Posted February 6 The code is on; I have not removed it yet. Link to comment
Web_Solutions Posted February 6 Share Posted February 6 3 hours ago, _yohandeschamps_ said: The code is on; I have not removed it yet. Add this code below all the code in Custom CSS Section. If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Link to comment
_yohandeschamps_ Posted February 6 Author Share Posted February 6 Yeah, I have done it, I got the same result. Link to comment
Solution tuanphan Posted February 11 Solution Share Posted February 11 On 2/7/2024 at 3:53 AM, _yohandeschamps_ said: Yeah, I have done it, I got the same result. Try this code to bottom of CSS box @media screen and (max-width:767px) { section[data-section-id="65ad68f5809d524e0ab92bfc"] .gallery-slideshow .gallery-caption-content { font-size: 14px !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment