Shrink Section Title

Solved

Shrink Section Title

Explore-Sherpa
Excursionist
28 0 8

I want to reduce the top and bottom margins for the "Best Selling Products" title on mobile as well as reduce the font size to be a few points smaller (reduce by 5 to start with). Any custom code would be greatly appreciated.

 

Shop Link: https://www.exploresherpa.com/

 

I am using an Influence theme.

 

Screenshot 2024-06-20 110255.png

Accepted Solution (1)

PageFly-Noah
Shopify Partner
1317 233 268

This is an accepted solution.

This is Noah from PageFly - Shopify Page Builder App

 

Hi @Explore-Sherpa  Please add code here to fix it:

Step 1: Online Stores > Themes > Edit code

Step 2: Choose file base.css
Step 3: Add code  in the end that file.

 

@media screen and (max-width: 767px) {
    .best-sellers-section .title {
        font-size: 20px !important;
    }
}

@media screen and (max-width: 475px) {
    .best-sellers-section .title {
        font-size: 20px !important;
    }
}
@media screen and (max-width: 390px) {
    .best-sellers-section .title {
        font-size: 16px !important;
    }
}

 

Hope my solution will help you resolve the issue.

 

Best regards,

Noah | 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.

View solution in original post

Replies 7 (7)

round
Shopify Partner
113 18 10
@Explore-Sherpa , hello
Please go to
1) Online store
2) Themes -> Edit theme
3) Layout
4) custom.pages.home.min.css and paste this code on the end

 

 

 

@media screen and (max-width: 501px) {
    .best-sellers-section .title {
        font-size: 20px !important;
    }

@media screen and (max-width: 500px) {
    .best-sellers-section .title {
        font-size: 15px !important;
        margin: 28px;
    }

 

 

 

I hope it works for you, let me know, and If you'd like to discuss this more, don't hesitate to send me a PM.
Was my reply helpful? Click Like to let me know! Was your question answered? Mark it as an Accepted Solution.
Explore-Sherpa
Excursionist
28 0 8

I tried to implement the code as you said, but I am seeing no changes. Am I doing this correctly? 

 

Screenshot 2024-06-20 114026.png

PageFly-Noah
Shopify Partner
1317 233 268

This is an accepted solution.

This is Noah from PageFly - Shopify Page Builder App

 

Hi @Explore-Sherpa  Please add code here to fix it:

Step 1: Online Stores > Themes > Edit code

Step 2: Choose file base.css
Step 3: Add code  in the end that file.

 

@media screen and (max-width: 767px) {
    .best-sellers-section .title {
        font-size: 20px !important;
    }
}

@media screen and (max-width: 475px) {
    .best-sellers-section .title {
        font-size: 20px !important;
    }
}
@media screen and (max-width: 390px) {
    .best-sellers-section .title {
        font-size: 16px !important;
    }
}

 

Hope my solution will help you resolve the issue.

 

Best regards,

Noah | 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.

Explore-Sherpa
Excursionist
28 0 8

Thank you for the code, but I also wanted to reduce the top and bottom margins more.

PageFly-Noah
Shopify Partner
1317 233 268

Hi @Explore-Sherpa  Thank you so much. But I see it show center. I don't know if you have any changes. That means you don't want it centered and low to the bottom margin, right?

Screen Shot 2024-06-21 at 00.08.47.png

 

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.

Explore-Sherpa
Excursionist
28 0 8

I want to remove the white space marked in blue in order to bring our best sellers up a bit more on mobile. I still want it centered.Screen Shot 2024-06-21 at 00.08.47.png

Made4uo-Ribe
Shopify Partner
6884 1640 2025

Hi @Explore-Sherpa 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.slider-section-heading h2.title {
    padding: 39px;
    font-size: 31px;
}
@media screen and (max-width: 767px) {
    .best-sellers-section .title {
        padding: 30px !important;
        font-size: 26px !important;
    }
}
@media screen and (max-width: 475px) {
    .best-sellers-section .title {
        padding: 0px !important;
        font-size: 26px !important;
    }
}

 

And Save. 

result:

Made4uoRibe_0-1718901816890.pngMade4uoRibe_1-1718901850091.png

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.