This topic has 2 replies, 2 voices, and was last updated 6 years, 10 months ago ago by Rose Tyler
Just an FYI, maybe you can include in next update. The [button] shortcode is missing the URL. I added it to the shortcodes.php and fixed it.
LINE: 1340
add_shortcode(‘button’, ‘etheme_btn_shortcode’);
function etheme_btn_shortcode($atts){
$a = shortcode_atts( array(
‘title’ => ‘Button’,
‘href’ => ‘#’,
‘icon’ => ”,
‘size’ => ”,
‘style’ => ”,
‘el_class’ => ”,
‘type’ => ”
), $atts );
$icon = $class = ”;
if($a[‘icon’] != ”) {
$icon = ‘<i class=”fa fa-‘.$a[‘icon’].'”></i>’;
}
if($a[‘style’] != ”) {
$class .= ‘ ‘.$a[‘style’];
}
***********ADDED*********************
if($a[‘href’] != ”) {
$class .= ‘ ‘.$a[‘href’];
}
***************up to here********
if($a[‘type’] != ”) {
$class .= ‘ ‘.$a[‘type’];
}
if($a[‘size’] != ”) {
$class .= ‘ ‘.$a[‘size’];
}
if($a[‘el_class’] != ”) {
$class .= ‘ ‘.$a[‘el_class’];
}
return ‘<span>’. $icon . $a[‘title’] . ‘</span>‘;
}
Hello,
I sent your report to our developers.
Thank you for the notice.
Regards,
Rose Tyler.
You must be logged in to reply to this topic.Log in/Sign up