Shopify themes, liquid, logos, and UX
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.
Solved! Go to the solution
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.
@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 tried to implement the code as you said, but I am seeing no changes. Am I doing this correctly?
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.
Thank you for the code, but I also wanted to reduce the top and bottom margins more.
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?
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.
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.
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:
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025