WordPress.org

Forums

Virtue
[resolved] How to open topbar links in a new window (5 posts)

  1. RuudEngels
    Member
    Posted 1 year ago #

    Hello,

    I would like to know how I can open links in the topbar in a new window.
    I tried to changed the code in the header.php with the code target="_blank on several places, but it won't work.

    Hopefully someone can help me.
    Thanks a lot.

    With kind regards

  2. Kadence Themes
    Member
    Theme Author

    Posted 1 year ago #

    Which links? are you talking about the topbar menu? You can do that in the menus page. When you are setting up your topbar menu just click the screen options in the top right corner then make sure target is checked, then each menu item will have the option to open in a new tab.

    Kadence Themes

  3. thakwza
    Member
    Posted 1 year ago #

    Hi, I have been having the same issue with my topbar icon links. These are edited from the topbar settings in the theme options, so there are no screen options where I can make sure target is checked. How can I make my topbar icon links open in a new tab?

  4. Kadence Themes
    Member
    Theme Author

    Posted 1 year ago #

    There is a little workaround for the topbar icon links, when you add your link into the box at the end add this:

    " target="_blank

    Kadence Themes

  5. thakwza
    Member
    Posted 1 year ago #

    Thank you! That worked beautifully

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.