Override Shortcode function in BeTheme with custom Shortcode in function.php's Child theme

Hi guys! I need to override a shortcode function (fancy_heading) in BeTheme with my custom fancy_heading function.

I tried with this in functions.php in child theme

remove_shortcode('fancy_heading'); and then with

add_shortcode( 'fancy_heading', 'custom_sc_fancy_heading' );

function custom_sc_fancy_heading( $attr, $content = null )
{
....
}

But it doesn't seem the good job. May you help please? many thanks!

Comments

Sign In or Register to comment.