Site logo

[Resolved] Page Hero Element Best Practice

Home Forums Support [Resolved] Page Hero Element Best Practice

Home Forums Support Page Hero Element Best Practice

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2556518
    David

    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!

    #2556606
    David
    Staff
    Customer Support

    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.

    #2556631
    David

    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!

    #2556661
    Ying
    Staff
    Customer Support

    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?

    #2556666
    David

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

    #2556679
    Ying
    Staff
    Customer Support

    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?

    #2556739
    David

    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!

    #2557791
    Ying
    Staff
    Customer Support

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

    #2557812
    David

    Thanks Ying, much appreciated…

    #2557887
    Ying
    Staff
    Customer Support

    No problem 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.