Shopify themes, liquid, logos, and UX
So on this page I have three custom liquid blocks towards the bottom. There is a small amount of white space between each of them but as far as I can see from the code it is not padding or margin, the div just outside the content is ever so slightly taller. Does anyone know what is causing this?
Solved! Go to the solution
This is an accepted solution.
Please let me know if you know how to add the code, if not I will send you detailed steps to walkyou through it.
Do you mean this space?
It is caused by custom liquid that you added to your code from the Shopify customizer.
Just delete it.
If you can't find this custom code, simply add this code to your theme.liquid:
<script>
document.addEventListener('DOMContentLoaded', function() {
var recommendationsSection = document.querySelector('.shopify-section-template--21550427177269__product_recommendations');
if (recommendationsSection) {
recommendationsSection.style.display = 'none';
}
});
</script>
No, sorry, I should have included a picture. Theses are 3 separate custom liquids
Hi,
You can surround the custom code with <div style="margin-top: -10px;> fix it until the images touch the edges this will solve the issue the space is the main container for the custom liquid block.
Where exactly are you suggesting that be put? in the custom liquid block?
I don't think it has anything to do with the margins because when I inspect it this there are none.
Yes its not margin or padding its the container for the custom liquid
just add at the top:
<div style = "margin-top: -10px">
close </div> at the bottom
save and check and let me know if it work if not give me collaborator access to fix it for you
Sadly adding that to the top of the custom liquid block only clips the image inside still keeping the white borders. Also sorry I would be unable to give you collaborator access.
I found the problem :
Give me a few minutes and will let you know how to solve this
This is an accepted solution.
Please let me know if you know how to add the code, if not I will send you detailed steps to walkyou through it.
Amazing, that worked, I had the text-center isolated as something that changed this section but no clue why line-height is adding to that. Thank you!
You are welcome glad I could help.
Have a nice day.
HI Natasha,
I have a similar problem and I have tried everything to resolve this. Just need the space above my custom liquid video to be removed here. What is the best way to get rid of this on the top page?
I am having the same issue but have no idea how to add the code, could you please proved steps?
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024