Enable Formatting Tags for Content Limit in Genesis Featured Posts widget

gallerygenesis

Genesis Framework has same function that return the content after trimming and it strips all HTML
The following code help you keep or filter some HTML tags when you are using Content Limit in Theme Settings or Widgets (e.g Genesis – Featured Posts widget)

Add following to functions.php in the Genesis Framework child theme


add_filter('get_the_content_limit_allowedtags', 'childtheme_custom_allowedtags');
function childtheme_custom_allowedtags() {
return '<script>,<style>,<b>,<br>,<em>'; //add whatever tags you want to this string
}

The code been tested on Gallery Child Theme for Genesis Framework

%d bloggers like this: