TemplatesNext Forums Premium Theme i-spirit Support Call To Act URL link should open in new window

This topic contains 1 reply, has 2 voices, and was last updated by marsian marsian 5 months, 1 week ago.

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

    Stefan
    Participant

    Hello,
    is it possible by klick the button to open the URL in a new tab ?
    In the settings for the shortcode is this option not possible.

    Best regards
    Stefan

    #2110

    marsian
    Keymaster

    Hello Stefan,

    for button shortcode “Target” parameter is there, choose “New tab” to open in new window.

    for “Call To Act” shortcode add class “nxnewwindow” and add the following lines of JS in “i-spirit options” > “Custom CSS/JS” > “JS Code”

    
    jQuery(document).ready(function($) {
        $('.nxnewwindow .ibutton').attr('target', '_blank'); 
    });
    

    and your shortcode would look somthing like

    
    [nx_calltoact cta_bgcolor="#e56700" cta_button_url="http://www.google.com/" class="nxnewwindow"]Call to act text[/nx_calltoact]
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.