Increase excerpt size for one div class in a theme
-
I have a theme that I’m using called antinews. It has an options area in the admin panel to adjust some settings. One of the settings areas is excerpt length for a “featured category”. It works up to a number of approx. 300 words. Basically if I input 50 it sets the excerpt at about 50 words. If I set it at 300, then it increases to 300. But, if I set it over 300 to, say, 500, it stays at 300. Is there a max excerpt length in wp? I looked at some of the threads and mods to increase the excerpt lenght but it is global and I only want to increase it for this specific “featured category” div.
Also I went into the specific featured5.php file in the includes folder for the theme and modified this code to increase $featuredcat2excerptlength to 650 as shown:
[please mark your code using the ‘code’ button]
<?php if(!isset($featuredcat5excerptlength) || empty($featuredcat5excerptlength) || !is_numeric($featuredcat5excerptlength)){ $featuredcat2excerptlength=650; } ?> <?php if(strlen($rcsspthec) > $featuredcat5excerptlength){$rcsspthec=LimitText(trim($rcsspthec),10,$featuredcat5excerptlength,""); }?>
Thanks for looking…..
- The topic ‘Increase excerpt size for one div class in a theme’ is closed to new replies.