[Resolved] Dynamic Content to Display Page Title

Home Forums Support [Resolved] Dynamic Content to Display Page Title

Home Forums Support Dynamic Content to Display Page Title

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1531455
    Ian

    I noticed we can now use a featured background inside a Container’s background image. I have created a Blocks Element and would like to display the Page Title inside this same container. I understand this function is not possible at this time using Block Elements. I also understand it may be possible using a custom shortcode.

    Based on this KB: https://docs.generatepress.com/article/creating-a-shortcode/

    What is the proper syntax to display the Page Title:

    echo ‘short code example’;

    This Blocks Element is to be displayed at the top of every page as a Page Hero. I think I am almost there. Any help with the proper syntax for the echo ” line would be appreciated!

    Thanks!

    Ian

    #1531553
    Leo
    Staff
    Customer Support
    #1531556
    Ian

    Thanks Leo! This works well! Can’t wait until Block Elements support Template tags.

    Appreciate it!

    #1531576
    Leo
    Staff
    Customer Support

    No problem 🙂

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