-
-
Hello, awesome support team!
I need your help.I want to add setting for buttom
I can’t add to button’s link target=”_blank” or download attribute
— for pages which have to open in new tab
— for initialisation files donwload.
like as vc-button-2 (<span style=”color: #9d8967; font-family: ‘Open Sans’, sans-serif; font-size: 12px; line-height: 18px; background-color: #fff4e2;”>it is deprecated since version 4.5. </span>) or ()
Please give me code and say what files I have to edit for this function.
Or add it in next update — it’s easely then everytime find copy-paste link.Sorry for my English. I am ashamed.
-
Hello,
You must have an old version of Visual Composer as the Button 2 does not longer have that name and the ‘Open in new tab’ attribute.
I have notified the developer team regarding it, but i still can not tell for sure if this will be added in future theme update.
If you want to open button in new tab, for the first button go to file vc_templates/button.php and find this line:$output .= '<a class="btn-bt align-'.esc_attr($align).' '.esc_attr($cl_redata['overall_button_style'][0]).'" href="'.esc_url($link).'"><span>'.esc_attr($title).'</span><i class="'.esc_attr($icon).'"></i></a>'; if($button_bool =='yes'): $output .='<a class="btn-bt '.esc_attr($cl_redata['overall_button_style'][0]).'" href="'.esc_url($button_2_link).'"><span>'.esc_attr($button_2_title).'</span><i class="'.esc_attr($icon).'"></i></a>'; endif;
Replace with this:
$output .= '<a target="_blank" class="btn-bt align-'.esc_attr($align).' '.esc_attr($cl_redata['overall_button_style'][0]).'" href="'.esc_url($link).'"><span>'.esc_attr($title).'</span><i class="'.esc_attr($icon).'"></i></a>'; if($button_bool =='yes'): $output .='<a target="_blank" class="btn-bt '.esc_attr($cl_redata['overall_button_style'][0]).'" href="'.esc_url($button_2_link).'"><span>'.esc_attr($button_2_title).'</span><i class="'.esc_attr($icon).'"></i></a>'; endif;
Save file.
Best regards!
-
This reply was modified 9 years, 3 months ago by
Mirela.
-
This reply was modified 9 years, 3 months ago by
-
You must be logged in to reply to this topic.