CMS Development

ALouvari
Member

Template css issues

SOLVE

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

Template css issues

SOLVE

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

Template css issues

SOLVE

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

Template css issues

SOLVE

Thank you for sharing the solution @ALouvari! 🙂  


Wusstest du, dass es auch eine DACH-Community gibt?
Nimm an regionalen Unterhaltungen teil, indem du deine Spracheinstellungen änderst


Did you know that the Community is available in other languages?
Join regional conversations by
changing your language settings

0 Upvotes
JanetArmstrong
Top Contributor | Partner
Top Contributor | Partner

Template css issues

SOLVE

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

Template css issues

SOLVE

Hello @ALouvari and @emacrow ,

 

can you show us your code pls?

Best regards
Özcan

Oezcan Eser Signature
ALouvari
Member

Template css issues

SOLVE

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