-
-
Hello,
I’m trying to create a call to action button that opens in another tab and not having any success. I tried to add the ” target=”_blank to the link with no success. Also I tried to mimic the text from the button I created that does open in another tab also with no success (new_tab=”yes”). Can you please help me make the call to action button open in a separate tab? Thank you.
-
Hello,
Please go to file vc_templates/textbar.php and find this line:
$output .= '<a href="'.esc_url($button_link).'" class="btn-bt '.esc_attr($cl_redata['overall_button_style'][0]).'"><span>'.esc_attr($button_title).'</span><i class="'.esc_attr($icon).'"></i></a>';
Replace with this:
$output .= '<a href="'.esc_url($button_link).'" target="_blank" class="btn-bt '.esc_attr($cl_redata['overall_button_style'][0]).'"><span>'.esc_attr($button_title).'</span><i class="'.esc_attr($icon).'"></i></a>';
Save changes.
Note: Please consider updating your profile data. Read this article for more information.
Best regards!
-
-
You must be logged in to reply to this topic.