Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Open Dynamic Tag links in _blank

  • I’m probably missing something obvious, but I can’t figure out how to add target=”_blank” to dynamic tags. I’m using GB Pro and ACF. Here’s an example of a custom field that contains a sponsor’s website link. It’s rendering fine but I would like it open to another tab.

    {{post_meta key:sponsor_website|link:post_meta,sponsor_website|required:false}}

  • Hi there,

    You can set the element’s TAG NAME to a, and set the link and content separately, you should see the Open link in a new tab option.

    Here’s a screenshot for your reference:
    https://app.screencast.com/y2adGRigGthrC

  • Thank you. That did the trick!

    Is there a way to do this for a container with a background image?

    https://neweadev.wpengine.com/about-us/sponsors/

  • The easy way is to set the container’s tag to a, and add the link to it directly.

    Just make sure there are no other a elements in the container to avoid HTML error.

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