Site logo

Archived topic

Page Hero Element Best Practice

9 replies · Started by David on March 5, 2023

Viewing posts 1–10 of 10

Hi, can you please advise me on the 'best practice' when creating a page hero element to be used across multiple pages, in order to avoid additional on-page CSS. Should I be creating a global style then adding this to the page hero element, or just creating the hero element as-is? Thanks!

Hi there,

unless you're using the same styles elsewhere in your site, then there is no need to use global styles. As the Page hero will only load it styles on that page.

Thank David, so let's say I have 3 different hero elements which load different text in via dynamic fields (but all in the same header style), I guess I would set a global style in this case? Thanks!

I have 3 different hero elements which load different text in via dynamic fields (but all in the same header style),

Are the different texts coming from the same dynamic field or different dynamic fields?

Hi Ying, one might be for post meta data, another a static page title, etc...

one might be for post meta data, another a static page title, etc…

So there are different dynamic fields in the 3 elements? No chance to use only one element for all 3 locations?

No… there will be 3 headers, so I assumed a global style for the 3 elements might have been the cleanest way to do it. Thanks!

Yes, in that case, using the global style should work.

Thanks Ying, much appreciated...

No problem :)

This archived topic is closed to new replies.