Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #392431

    hey,

    #392675

    Hey Gal763!

    Replace the code on functions.php:

    add_filter( 'avf_masonry_excerpt_length', 'avf_masonry_excerpt_length_mod');
    function avf_masonry_excerpt_length_mod() {
    $excerpt = 50;
    return $excerpt;
    }
    
    function avia_backend_truncate($string, $limit, $break=".", $pad="...", $stripClean = false, $excludetags = '<strong><em><span>', $safe_truncate = false)
    {
    	if($stripClean)
    	{
    		$string = strip_shortcodes(strip_tags($string, $excludetags));
    	}
    
    	if(strlen($string) <= $limit) return $string;
    
    	if(false !== ($breakpoint = strpos($string, $break, $limit)))
    	{
    		if($breakpoint < strlen($string) - 1)
    		{
    			if($safe_truncate || is_rtl())
    			{
    				$string = explode(" ",$string);
    				$string = implode(" ",array_splice($string,0,$limit));
    			}
    			else
    			{
    				$string = explode(" ",$string);
    				$string = implode(" ",array_splice($string,0,$limit));
    			}
    		}
    	}
    
    	// if there is no breakpoint an no tags we could accidentaly split split inside a word
    	if(!$breakpoint && strlen(strip_tags($string)) == strlen($string))
    	{
    		if($safe_truncate || is_rtl())
    		{
    			$string = explode(" ",$string);
    			$string = implode(" ",array_splice($string,0,$limit));
    		}
    		else
    		{
    			$string = explode(" ",$string);
    			$string = implode(" ",array_splice($string,0,$limit));
    		}
    	}
    
    	return $string;
    }

    Remove the date with this on Quick CSS:

    span.av-masonry-date.updated {
    display: none !important;
    }

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.