Site logo

Archived topic

Social Icons won't open new window

3 replies · Started by troyw on February 10, 2022

Viewing posts 1–4 of 4

Hi team,
I have a small problem with custom post pages not opening social media links in a new window.
I'm pretty sure that I may need to add target="_blank" somewhere, but can't find where to add this.

Any ideas how I can force the social icons to open in new window?

Thanks

Hi troyw,

Without custom Javascript, this is only doable via GenerateBlocks Pro.

With GenerateBlocks Pro, you may set the dynamic link to “Post” for your Content Template Block Element.

See this as reference: https://share.getcloudapp.com/xQuzJy9g

Then, you may set it to “Open link in a new tab”.

Kindly see: https://share.getcloudapp.com/L1uWEq4v

For Buttons, it is doable with just the free GenerateBlocks plugin.

See this as reference: https://share.getcloudapp.com/z8ukRKx5

This link may also help you if you wish to do it via JS: https://stackoverflow.com/questions/804256/how-do-i-add-target-blank-to-a-link-within-a-specified-div

Hope this helps! :)

All fixed.
I had to add target="_blank" into my custom Social Media PHP File

Glad you were able to find a resolution to this! Feel free to reach out anytime if you'll need assistance with anything else. :)

This archived topic is closed to new replies.