Jump to content

Reel Caption for mobile

Go to solution Solved by tuanphan,

Recommended Posts

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 by _yohandeschamps_
Missed some infos
Link to comment
  • Replies 9
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

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?

Screenshot_72.png

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
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
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
3 hours ago, _yohandeschamps_ said:

The code is on; I have not removed it yet.Screenshot2024-02-06at7_03_08pm.png.2e6765ddc4e92e7213cbdc3bd5453715.png

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
  • Solution
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.