WordPress.org

Forums

Virtue
[resolved] virtue button open a new window (6 posts)

  1. nonesuch
    Member
    Posted 1 year ago #

    Hi, How do I make the inserted virtue button open the link in a new window?

  2. Kadence Themes
    Member
    Theme Author

    Posted 1 year ago #

    Thats a feature I will have to add in, great request, I'll look into it.

    For now you can just add the code in like this:

    <a href="http://google.com" target="_blank" class="kad-btn kad-btn-primary">Button Text</a>

    Kadence Themes

  3. nonesuch
    Member
    Posted 1 year ago #

    Works great. Thank you!

  4. racpeki
    Member
    Posted 1 year ago #

    Hello, thanks for the code but where do I have to put it?
    I am trying to make the icon in the home page open in another window but if I put this code in the "Icon Link" of the icon it does not work.
    Many thanks for your help.

  5. nonesuch
    Member
    Posted 1 year ago #

    If you want the button to open a new window you can't use the button shortcode. You have to use the following HTML:

    <a href="http://google.com" target="_blank" class="kad-btn kad-btn-primary">Button Text</a>

    So if your button is for linking to say the website of Chelsea Wine Vault then it would be like this:

    <a href="http://www.chelseawinevault.com/" target="_blank" class="kad-btn kad-btn-primary">Shop For Wine</a>

    This takes your normal button text and applies the class "kad-btn kad-btn-primary" to it, which makes it look like the Virtue button but then the target="_blank" makes it open a new window.

  6. racpeki
    Member
    Posted 1 year ago #

    Many thanks for your answer.
    I have tried again to put the HTML code in the Icon link (Gallery) but it does not work.
    It comes out the icon with this digit on the top (" title="Gallery">), the only clickable thing is the title, it opens in another page but it does not bring me in the page I want, it brings me at this page (http://www.surfingtheplanet.com/%3Ca%20href=) that does not exist.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic