Remove padding above and below related items
Note:
Groupthought does not provide any warranty or further support for this code. Use this code at your own risk. The code provided below is only a suggestion. You are responsible for any and all code customizations made to your theme. Please work with a developer or Shopify Expert to ensure proper customization. This code may not work with all versions of of Pipeline or with other code customizations and apps you may have installed. We strongly recommend that you make duplicate of your theme before adding or changing any code in your theme.
This tutorial is intended for use with the Pipeline theme.
/* -- code to reduce padding above and below related items -- */ .template-product .page-margin { padding-top: 0px; } .template-product .product-section>.wrapper:last-of-type { padding-bottom: 0px; } .template-product .main-content { margin-bottom: -30px; } /* - end - */
If you find the space is too tight above Related items, change the first one from 0px to 10px or 30px, adjust accordingly.
Where do I add the code?
Use this link to learn where exactly to add this code snippet: