Support » Fixing WordPress » Homepage Block Links to Open in New Tab

  • Resolved uschesch

    (@uschesch)


    How can I get the links associated with the images on my honepage blocks to open in a new tab? I tried adding target=”_blank” to the URL on the block configuration page, and that didn’t work. Then I inspected the code, edited in Html and added target=”_blank” before the href, which didn’t work, and then I added it after the URL. Still no luck. Does anyone have a suggestion?

    Thank you,

Viewing 3 replies - 1 through 3 (of 3 total)
  • There is actually a way to do this within the WordPress editor.

    Appearance > Menus > Screen Options (tab at the upper right)

    Check the box that says Link Target. Each of your items will now show a checkbox to open the link in a new tab/window. Check the boxes you want and save your menu.

    Should be no code editing required.

    Thank you. I was able to use that approach to get my menu links to open in a new tab. What I need to do now is get the links associated with my homepage blocks to open in a new tab. I did display screen options on the Edit Block page, but it doesn’t have the Link Target option.

    Thanks.

    I got this done by adding “target = “_blank” to the end of the URL.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Homepage Block Links to Open in New Tab’ is closed to new replies.