A user is experiencing unwanted padding on custom Liquid code that displays product availability text (“Délais de livraison: 10 - 15 jours ouvrés”) on their Shopify product pages. The padding affects alignment with other elements, and when positioned above other components in the product information section, those components inherit the same padding.
Three solutions were proposed:
Moeed’s approach: Add CSS code in theme.liquid file above the </body> tag to target the padding issue.
Made4uo-Ribe’s solution: Navigate to the CSS file (base.css, style.css, or theme.css) in the Assets folder and add:
PageFly-Henry’s method: Search for base.css file and paste code targeting .product__info-wrapper.grid__item with padding: 0 !important;
All solutions involve adding CSS overrides to remove the padding, with slight variations in targeting specific classes. The discussion remains open as the original poster has not confirmed which solution worked.
Summarized with AI on November 13.
AI used: claude-sonnet-4-5-20250929.
Hello, I’m using a custom liquid to display a text that changes when a product is in stock or not. I created it under the production information section. Also if I put it above other component in the production information section everything under it will inherint the same padding.
I need help to remove the padding and make my text allign with everything
In any product information you can find a text which comme from the liquid code: “Délais de livraison: 10 - 15 jours ouvrés” the number can change if the product have stock or not anyway it’s this one I’m having an issue with.
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: