Home Forums Unicon Raw Code in Bloglist & Blog

Home Forums Unicon Raw Code in Bloglist & Blog

  • Creator
    Ticket
  • #86799
    uniganzy
    Buyer

    Hi minti team,
    thanks for this nice an well coded theme. i already used unicon in a website a few years ago with many personal adaptions in the parent theme because of some issues.

    One of these issues still appears in the new unicon theme. The raw shortcode text in Bloglist and Blog. This time i try just to do any changes in a child theme (because of update and security issues which let one sleep less well ;-)), which is a bit more challenging. Hope it works out by the end.

    The code adaptions like

    // Custom Excerpt Length
    function fraganzy_custom_excerpt($limit=50) {
    	global $minti_data;
    	
    	$the_content = get_the_content();
    	$the_content = preg_replace("~(?:\[/?)[^/\]]+/?\]~s", '', $the_content);  # strip shortcodes, keep shortcode content
    	
    	if($minti_data['switch_readmore'] != 0) {
        	return strip_shortcodes(wp_trim_words($the_content, $limit, '... ' . __('Read more', 'minti') . '  →'));
    	} else {
    		return strip_shortcodes(wp_trim_words($the_content, $limit));
    	}
    }

    don´t work now in the functions.php. So how can i adapt my child to behave well?

    Greetings,
    fraganzy

Sorry, only verified customers can view ticket replies.