• Live group demo of Marketing Hub + Data Agent

    Standardize reporting, reduce manual work, and introduce AI without cleanup

    Join us on March 12
  • Ready to build your local HubSpot community?

    HUG leaders host events, spark connections, and create spaces where people learn and grow together.

    Become a HUG Leader

Template css issues

ALouvari
Member

Hello, 

I have create a new template using Design tools for my Landing Pages. While I have all the files correct (html, css), the preview page shows my template properly without any problem. 

However, when I go to create a new Landing Page with this specific template, the preview of the template looks correct but when I select it, the css is not loading properly. 

 

For example, this is a part of the template in my preview:

ALouvari_2-1662392262074.png

And this is how it looks when I select this template in Landing Page creation:

ALouvari_3-1662392369910.png

 

Does anyone know why this is happening and how to fix it? 

 

Thank you very much! 

0 Upvotes
1 Accepted solution
ALouvari
Solution
Member

Hello everyone,

 

I manage to find the solution to my  issue.

It seems that I was using the IDs each module was generated by default in the preview mode as css hundlers, but once I use the template in a live Landing Page, these IDs were changing with a numbered ones. 

 

As a solution, I created individual css classes for each one of these elements and now everything is working properly! 

 

Thank you everyone!

View solution in original post

0 Upvotes
5 Replies 5
ALouvari
Solution
Member

Hello everyone,

 

I manage to find the solution to my  issue.

It seems that I was using the IDs each module was generated by default in the preview mode as css hundlers, but once I use the template in a live Landing Page, these IDs were changing with a numbered ones. 

 

As a solution, I created individual css classes for each one of these elements and now everything is working properly! 

 

Thank you everyone!

0 Upvotes
MiaSrebrnjak
Community Manager
Community Manager

Thank you for sharing the solution @ALouvari! 🙂  


loop Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.
Learn More

0 Upvotes
JanetArmstrong
Contributor | Partner
Contributor | Partner

It is probably that your preview is using a different css file. Make sure you assign the css file to your template. It could be using your domain settings on the page.

 

Oezcan
Top Contributor | Diamond Partner
Top Contributor | Diamond Partner

Hello @ALouvari and @emacrow ,

 

can you show us your code pls?

Best regards
Özcan

Oezcan Eser Signature
ALouvari
Member

Hello @Oezcan , 

Thank you very much for your reply. 

 

Below it's the part of the code from the specific element of my template. I also shared the css part too, but it's a common css code.

 

ALouvari_0-1662456488835.png

ALouvari_1-1662456570646.png

 

Please let me know if you need any further information. 

 

Thank you! 

 

0 Upvotes