Solved

Reduce image banner text size on mobile view

Ébloui
Excursionist
16 0 4

 Hi, beneath is a picture of my image banner section on mobile view. On desktop it looks good. But I would like for only this image banner section (because I have multiple) to fit with the button, text and header in the image. Any code for this? I did find a code for base.css but it makes every image banner section small and the button still didn’t fit

E63AA2CC-557A-4A42-9686-07ED343E78DC.png

Accepted Solution (1)
PageFly-Henry
Astronaut
1081 311 263

This is an accepted solution.

Please try again with this code:

@media (max-width: 767px){
.banner__box.content-container.content-container--full-width-mobile.color-accent-1.gradient {
padding-left: 0 !important;
padding-right: 0 !important;
line-height: normal !important;
padding-top: 70px;
}}

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

View solution in original post

Replies 5 (5)

PageFly-Henry
Astronaut
1081 311 263

Hii @Ébloui 

This is Henry from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file base.css

Step 3: Paste the below code at bottom of the file -> Save


@media (max-width: 767px){

section#shopify-section-template--20370726388059__image_banner_Y6J8RX img {

    height: 180vw !important;

}}

 

Hope that my solution works for you.

Best regards,

Henry | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

Ébloui
Excursionist
16 0 4

Yes the code worked to put everything higher or lower. But it is still to big to fit everything in the picture. Can you maybe edit the code with a line to edit the size of inline richtext and header / button?

PageFly-Henry
Astronaut
1081 311 263

This is an accepted solution.

Please try again with this code:

@media (max-width: 767px){
.banner__box.content-container.content-container--full-width-mobile.color-accent-1.gradient {
padding-left: 0 !important;
padding-right: 0 !important;
line-height: normal !important;
padding-top: 70px;
}}

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

Ébloui
Excursionist
16 0 4

Thank you very much. The button still doesn’t fit entirely. But it isn’t very disturbing and the header and text look nice in the picture. 

BrewBrains
Shopify Partner
133 22 27

Hi @Ébloui ,

Can you share the store's preview URL so that I can have a look at the issue?

Thanks.

Was I helpful?

Buy me a coffee


Sandesh Paudyal |

| Shopify Partner


Need help with your store?

 sandeshpaudyal99@gmail.com

For quick response - Message Me : +9779851353732