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.
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!
I added a js function, it will work for all button module and shortcode
– download the file, unzip it
– login FTP, go to themes/theone/js/
– upload / replace custom.theme.js
You must be logged in to reply to this topic.