Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
I would like to reduce the spacing between the heading, text, and button. Please see attached image with black annotation showing the location.
Solved! Go to the solution
This is an accepted solution.
Hello @lukeoneill90, Apologies for the delay in the reply, but we got you covered.
You need to add the below code at the end of your base.css file in the assets folder.
Go to Shopify admin > Online store > Select theme
Edit code > Open the base.css file from the assets folder
Paste the code below in the last of the file and save it.
Here is the code:
.banner__box .banner__heading {
margin-top: 0px !important;
line-height: 50px !important;
}
.banner__box .banner__buttons {
margin-top: 5px !important;
}
Let us know if you need any further help with this.
Regards,
CedCommerce
Share your store URL so we can check the issue and let you know the best possible solution.
Regards,
CedCommerce
This is an accepted solution.
Hello @lukeoneill90, Apologies for the delay in the reply, but we got you covered.
You need to add the below code at the end of your base.css file in the assets folder.
Go to Shopify admin > Online store > Select theme
Edit code > Open the base.css file from the assets folder
Paste the code below in the last of the file and save it.
Here is the code:
.banner__box .banner__heading {
margin-top: 0px !important;
line-height: 50px !important;
}
.banner__box .banner__buttons {
margin-top: 5px !important;
}
Let us know if you need any further help with this.
Regards,
CedCommerce
Great it works! Thanks so much.
I have another question regarding spacing but on another page.
I would like to reduce the line spacing between a line and the sequential line after hitting the enter button. For each product page. Please see attached screenshot with the black annotated line again.
Cheers
Thanks for reaching out to CedCommerce. We are glad we made a difference.
This issue can be resolved by adding a custom code to your base.css file. For your help we are providing the code below, add the same and your problem will be resolved.
.accordion__content p{
margin: 10px 0px !important;
}
You can check the results below.
Before:-
After:-
Hope this helps, let us know if you need any further help.
All the best,
CedCommerce
This worked very well, thank you 🙏
We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024