Archived topic
Using Global Styles in Element > Content Template
5 replies · Started by Antonio on August 12, 2022
Hello,
I've created an Element > Content Template for a Custom Post Type
The content template is using Dynamic Data to place the post title, the post content and the post featured image in specific positions.
So I tried to assign a Global Style to the Post Title, but looks like the styles are not inherited.
Instead, if I assign a style (i.e. color = red) to the Post Title element directly from the Content Template page, this affects the title in the custom post type (which will become red).
Does Global Styles works with Element > Content Template? If yes, any hint on how to solve the issue?
Thank you
Hi there,
can i see the site where this is not working ?
Hello,
private info attached.
After switching backend to English, you can find the "Modulo di contatto in Custom Post Type ENG" Element and check the settings of the first h1 element (you'll recognize it cause it's uppercase).
You'll see h1 and its container have a Global Style assigned.
You can then check results in this page: https://party.lacasadimelo.com/en/event/prova-custom-post-type-4/
Thank you
Hmmm... i can see the Container Blocks Global Styles are coming through. Try removing the global style from the Headline. Publish the change. And then re-add the Global Style.
Hi David,
sorry, It was my mistake. I forgot to add a class to the container.
Thank you for your help, anyway.
A.
You're welcome!