-
-
Please, how do I open the link in a new window on the button? I do not find buttons.php, I found only button.php
I entered target = ”_ blank”
‘target=”blank”’
– – –
$output .= ”.esc_attr($title).’‘;
if($button_bool ==’yes’):
$output .=”.esc_attr($button_2_title).’‘;
endif;
– – –
but it does not work
https://www.unigesto.org/sostienici/
Where am I wrong? Thanks a lot. Bruno
- This topic was modified 8 years ago by Mirela.
-
Hello,
I don’t understand well where did you made the edit, but to make the button open link in a new tab, please go to file vc_templates/button.php and find these lines:
$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 class="btn-bt align-'.esc_attr($align).' '.esc_attr($cl_redata['overall_button_style'][0]).'" href="'.esc_url($link).'" target="_blank"><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).'" target="_blank"><span>'.esc_attr($button_2_title).'</span><i class="'.esc_attr($icon).'"></i></a>'; endif;
Let us know.
Best regards!
-
Viewing 1 reply thread
You must be logged in to reply to this topic.