What's your biggest current challenge? Have your say in Community Polls along the right column.

Hubspot form not shoing on mobile devices

Solved

Hubspot form not shoing on mobile devices

HTB
Tourist
10 0 2

Hello,

 

I have a page that has a hubspot form that displays on the website but doesnt display on mobile devices.

 

How do i get it to show on mobile devices? I have tired to edit css file from other topics that have been posted without success.

 

The hubspot code is:

 

<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"></script>
<script>
hbspt.forms.create({
region: "XXX",
portalId: "XXXXXXX",
formId: "XXXXXXXXXXXXXXXXX"
});
</script>

 

I have placed it on a page using liquid code section that lets me paste the code on the page.

 

Any help is greatly appreciated!!

 

Thanks!

Jon

 

 

 

 

Accepted Solution (1)
Moeed
Shopify Partner
6346 1721 2079

This is an accepted solution.

Hey @HTB 

 

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>
@media screen and (max-width: 767px) {
.section-template--15622402179166__custom_liquid_WTjd8N-padding {
    padding: unset !important;
}
div#hbspt-form-56282de3-8d50-4789-8667-f999a5179a3b {
    padding: unset !important;
}
}
</style>

RESULT:

Moeed_0-1731000818292.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!

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


View solution in original post

Replies 6 (6)

Moeed
Shopify Partner
6346 1721 2079

Hey @HTB 

 

Can you send me the link of the page that has the Hubspot form on so I can have a look?

 

Best Regards,

Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


HTB
Tourist
10 0 2
Moeed
Shopify Partner
6346 1721 2079

This is an accepted solution.

Hey @HTB 

 

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>
@media screen and (max-width: 767px) {
.section-template--15622402179166__custom_liquid_WTjd8N-padding {
    padding: unset !important;
}
div#hbspt-form-56282de3-8d50-4789-8667-f999a5179a3b {
    padding: unset !important;
}
}
</style>

RESULT:

Moeed_0-1731000818292.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!

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


HTB
Tourist
10 0 2

Thats Great! Thank you!

 

It worked for that form but not one of the other forms on the site.

 

Do i need to add that code to another location?

 

The other form is here: https://hilltopbio.com/account/register

 

Thanks again for your help!!!

 

HTB
Tourist
10 0 2

same with this link as well - https://hilltopbio.com/pages/find-a-vet

HTB
Tourist
10 0 2

i added it in 3 more times with the code values changed. its working so thank you for your help!