Home Forums Theone WordPress Theme Button Function – Open link in new window

This topic contains 1 reply, has 2 voices, and was last updated by  BWSM 3 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6029

    stephaniec0331
    Participant

    I am using the Button Module in your theme’s page builder. I would like my URL to open up in a new, smaller window, on click. Is this possible?

    I could alternatively use your ‘button’ shortcode in a TextBlock Module, but I am not sure how to do this. I need something like this (below) in a Button Format:

    <a href="http://raider.websitewelcome.com/~tagitjj/contact-us/" onclick="window.open('http://raider.websitewelcome.com/~tagitjj/contact-us/', 'newwindow', 'width=500, height=500'); return false;">Contact Us</a>

    Thank you for your great support!

    #6030

    BWSM
    Keymaster

    I added a js function, it will work for all button module and shortcode

    Please follow:
    download the file, unzip it
    – login FTP, go to themes/theone/js/
    – upload / replace custom.theme.js

    Best, Bwsm

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

You must be logged in to reply to this topic.