• Resolved deniq

    (@deniq)


    This option do not control Carousel, Highlights and Featurettes modules post announce lenght.
    How can i control them?
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author eminozlem

    (@eminozlem)

    Yeah you’re right, the excerpt limit option works only for post loop and not the modules.
    I’ll make an option for the modules as well in the next updates.

    Meantime you can change the length by modifying the number in the module files under ./inc/modules/carousel.php etc.

    Look for eo_xcrpt(40); function and change the number accordingly. The eo_xcerpt() function limits by word, where as eo_trim() function limits by character count.

    Or If you want to use the same limit as posts in the options, you can simply replace the line <?php eo_xcrpt(40); ?> with the below code

    if($eo_options["loop_ext"] && $eo_options["loop_ext"] == 'excerpt') {
    
    					if(!empty($eo_options["exc_lim"]) && intval($eo_options["exc_lim"]) > 0 ) {
    						if($eo_options["exc_limby"] == "char") {
    						 eo_trim(strip_tags(get_the_excerpt()),$eo_options["exc_lim"]);
    						}
    						else if($eo_options["exc_limby"] == "word") {
    						 eo_xcrpt(strip_tags($eo_options["exc_lim"]));
    						}
    					}
    					else {
    						the_excerpt();
    					}
    				}

    Marking as resolved let me know if ou’ve further questions

    Thread Starter deniq

    (@deniq)

    thank a lot for quick support

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Do not work Excerpt Limit’ is closed to new replies.