[Resolved] Dynamic Subtitle for Header Element

Home Forums Support [Resolved] Dynamic Subtitle for Header Element

Home Forums Support Dynamic Subtitle for Header Element

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2327828
    Melvin

    Hi,

    I managed to create a header element for all the inner pages with a featured image and an H1 tag. How do I create a dynamic subtitle under the H1 tag so that it shows a different subtitle based on the page selected?

    For eg: If it’s the “About Us” page, the H1 tag will show “About Us” with the subtitle “Serving the community since 2000”; and if it’s the “Services” page, the H1 tag will show “Services” with the subtitle “We provide customised printing services” or something like that.

    #2327832
    Fernando
    Customer Support

    Hi Melvin,

    You’ll need to add a custom Post Meta field for the subtitle of your pages.

    A popularly used custom field plugin is ACF. See: https://www.advancedcustomfields.com/resources/getting-started-with-acf/

    Then, with a GenerateBlocks Headline Block, you can retrieve this post meta field through the dynamic settings: https://docs.generateblocks.com/article/headline-overview/#dynamic-data

    #2327835
    Melvin

    Hi, Fernando,

    How do I add the ACF field and the Headline Block into the header Element (Appearance » Elements)? I don’t see any option to add them.

    #2327837
    Fernando
    Customer Support

    Can you provide a link to your site? I’ll check your design and see how to go from there.

    #2327843
    Melvin

    Hi, Fernando,

    I managed to figure it out. Thank you so much for the prompt response. I appreciate you guys!

    Best regards,
    Melvin Neo

    #2327845
    Fernando
    Customer Support

    I see. You’re welcome Melvin!

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