Use Nav button to redirect to different site

Use Nav button to redirect to different site

Support Forums White – HTML Template Use Nav button to redirect to different site

This topic contains 3 replies, has 2 voices, and was last updated by  CreaboxThemes 2 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5343

    DavidD
    Participant

    Hi;
    How would I have one of the navigation buttons link to a different site instead of opening one of the pages in the theme as specified by data-goto=?
    I would like the button to behave as it currently does, but on a click, link to another site in a new tab or window.
    Thanks for your help.

    #5344

    CreaboxThemes
    Keymaster

    Hi,

    for example if you want to change the link blog, you have to change the code from this:

    <li><button class="pt-trigger left-margin css3Animate" data-animation="22" data-goto="5" data-style="darkNav" data-style2="blogNav">Blog<span class="line css3Animate"></span></button></li>

    to this:

    <li><button class="left-margin css3Animate" onclick="window.open('http://www.google.com/','_blank')" target="_blank">Blog<span class="line css3Animate"></span></button></li>

    You have to use the funciton window.open

    Regards

    #5345

    DavidD
    Participant

    Thank you very much!

    #5346

    CreaboxThemes
    Keymaster

    Your welcome. If you need something more, contact me 😉

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.