Slider shows codes


#1

Hi there,

I really love this theme!

But I have a small problem. When I use the slider it shows my codes in the description below. For an example: http://hafentv.mikevanoverveld.nl/

Is there any way to fix this?


#2

Hi,

Wow, that’s a lot of custom styling there.
The thing is that the_excerpt by default shows the shortcodes (without running them). Stripping them should work, so if you have a child theme add something like this in your child functions.php, or install a plugin like Code Snippets.


function solon_strip_shortcodes( $excerpt ) {
    return strip_shortcodes( $excerpt );
}
add_filter( 'the_excerpt', 'solon_strip_shortcodes', 11 );