Site logo

[Support request] element in two (or more) locations

Home Forums Support [Support request] element in two (or more) locations

Home Forums Support element in two (or more) locations

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2415661
    Dan

    When creating an element, there is an option to have it show only in one location (before title, after header etc…)
    Is there a way to have an element show up in 2 places without creating 2 separate elements?
    For example, displaying social share buttons in 2 places on the page: 1. after the posts title 2. at the end of the post.

    Is this doable?

    Thanks,
    Dan

    #2415724
    Leo
    Staff
    Customer Support

    Hi Dan,

    Unfortunately that’s not possible – you would need to create the element twice.

    The WP hook functionality only allows you to add content to one hook at a time as well:
    https://developer.wordpress.org/plugins/hooks/actions/
    https://docs.generatepress.com/article/using-hooks/

    #2443622
    Dan

    Thanks Leo,
    Maybe a future option?

    Dan

    #2443690
    Leo
    Staff
    Customer Support

    A theme (any themes) cannot control how the hook functions work in WP.

    If WP supports it in one day then we will be able to support it.

    I believe the links provided in my initial reply explained this 🙂

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