Hi,
Please insert given below php scripts at functions.php of child theme.
function sf_icon($atts, $content = null) {
extract(shortcode_atts(array(
"size" => "",
"image" => "",
"character" => "",
"cont" => "",
"float" => "",
"color" => "",
"link" => "",
"target" => "_self",
), $atts));
if (strlen($character) > 2) {
$character = substr($character, 0, 2);
}
$icon_output = "";
if ($cont == "yes") {
if ($character != "") {
$icon_output = '<div class="sf-icon-cont cont-'.$size.' sf-icon-float-'.$float.' sf-icon-'.$color.'"><span class="sf-icon-character sf-icon sf-icon-'.$size.'">'.$character.'</span></div>';
} else {
$icon_output = '<div class="sf-icon-cont cont-'.$size.' sf-icon-float-'.$float.' sf-icon-'.$color.'"><i class="'.$image.' sf-icon sf-icon-'.$size.'"></i></div>';
}
} else {
if ($character != "") {
$icon_output = '<span class="sf-icon-character sf-icon sf-icon-float-'.$float.' sf-icon-'.$size.' sf-icon-'.$color.'">'.$character.'</span>';
} else {
$icon_output = '<i class="'.$image.' sf-icon sf-icon-float-'.$float.' sf-icon-'.$size.' sf-icon-'.$color.'"></i>';
}
}
if ($link != "") {
$icon_output = '<a href="'.$link.'" target="'.$target.'" class="linked-icon">'.$icon_output.'</a>';
}
return $icon_output;
}
add_shortcode('icon', 'sf_icon');
Thanks
Mohammad