Re: Add in Padding For Custom Liquid | Dawn Template

Solved

Add in Padding For Custom Liquid | Dawn Template

TheBrandAudit
Excursionist
14 0 3

Hi All,

 

How do I modify the Dawn website code to add padding for a Custom Liquid I've added (i.e. a HubSpot contact form). The Form is too left justified and want to add padding around it. Here's the page in question: https://thebrandaudit.ca/pages/contact

 

Thanks in advance for the help!


Christina

CEO & Founder - The Brand Audit

Happy to be here building on Shopify!
Accepted Solution (1)

BSSCommerce-HDL
Shopify Partner
1926 672 801

This is an accepted solution.

Hi @TheBrandAudit

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag: 

<style>
.hs-form-iframe {
    padding-left: 50px !important;
}
</style>

Here is result: 

BSSCommerceHDL_0-1722129796927.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

View solution in original post

Replies 4 (4)

BSSCommerce-HDL
Shopify Partner
1926 672 801

This is an accepted solution.

Hi @TheBrandAudit

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag: 

<style>
.hs-form-iframe {
    padding-left: 50px !important;
}
</style>

Here is result: 

BSSCommerceHDL_0-1722129796927.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
TheBrandAudit
Excursionist
14 0 3

This worked perfect - thank you SO much for the quick help - very much appreciated!

 

Happy to be here building on Shopify!

BSS-TekLabs
Shopify Partner
1867 533 620

- Here is the solution for you @TheBrandAudit 
- Please follow these steps:

step.png

- Then find the base.css or theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.

.hbspt-form {
 display: flex !important;
    justify-content: center !important;
}

- Here is the result you will achieve:

BSSTekLabs_0-1722130412051.png

 

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution .
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
BSS Commerce - Full-service eCommerce Agency

For give Gift to customers and Upsell in Cart, check out Salepify: Free Gifts with purchase


Post purchase upsell, downsell offers to improve sales and AOV
Salemate Post Purchase Upsell

BSSCommerce-B2B
Shopify Partner
1220 318 372

Hi @TheBrandAudit , 

I have reviewed your requirement, you just need to edit css script and the issue will be resolved.  You can follow my instructions! 

 

Step 1: Go to Admin -> Online store -> Theme > Edit code:

BSSCommerceB2B_0-1722133959445.png

 

Step2: Search for the file theme.liquid and add this script before the end of tag  </head> or </body>:

.hbspt-form {
    padding-left: 30px !important;
}

In this step, you can change value of padding-left as you want to fix position of form.

In my example, I choose 30px. 

Step 3: Save and reload page

And the result will be ok in both mobile and desktop view:

#Mobile: 

BSSCommerceB2B_1-1722134085376.png

 

#Desktop

BSSCommerceB2B_2-1722134090435.png

It's a pleasure to assist you.

Good luck! ^^

 

If they are helpful, please give us  likes and mark as the solution.

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


BSS: B2B Wholesale Solution |BSS: B2B Portal, Quote, Net 30 | B: B2B Lock Password Protect


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency