increase left margin with liquid code

increase left margin with liquid code

Bezpallko
Tourist
10 0 2

using liquid code i added the name of the current tag to display on the collection page, but i encountered the fact that the name is displayed with 0 indent on the left edge. How can i increase the indent from the left margin by 40px?

Replies 6 (6)

Moeed
Shopify Partner
7711 2071 2553

Hey @Bezpallko 

 

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Moeed
Shopify Partner
7711 2071 2553

Hey @Bezpallko 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.section-template--17520170467503__custom_liquid_WtfAeT-padding {
    margin-left: 40px !important;
}
</style>

RESULT:

Moeed_0-1733911021062.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Bezpallko
Tourist
10 0 2

does not work

Rahul_dhiman
Shopify Partner
855 168 186

Go to online store ----> themes ----> actions ----> edit code ---->base.css
add this code at the end of the file and save.

@media screen and (min-width: 750px) {
.section-template--17520170467503__custom_liquid_WtfAeT-padding {
padding-left: 40px !important;
}
}

result
66.png

If this was helpful, hit the like button and accept the solution.
Thanks

Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront

Contact here


BEST CUSTOMER ACCOUNTS APP WITH CUSTOM WISHLIST OPTION 
TRY OUR APP :

PWC: Customer Accounts & Pages

steve_michael2
Navigator
454 39 62

Hi @Bezpallko 


1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bot

.section-template--17520170467503__custom_liquid_WtfAeT-padding {
    margin-left: 40px !important;
}

 

If my reply is helpful, kindly click like and mark it as an accepted solution.

If you are happy with my help, you can help me buy a COFFEE

Thanks!