Welcome! To use this support forum, please Login or Join Today!

   

Post excerpts to full content

{name}
RankRankRank

Total Posts: 99

Joined 2012-11-23

PM

 

Hi, what code and file do i change to show full post content in categories?

thanks

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

You can change the content display by overriding the st_display_content() function. Just add this to your child theme:

http://hastebin.com/pufimucifa.php
(line #9 is the modified line)

function st_display_content() {
 // Archive, Category & Search Pages
 if (is_archive() || is_search()) {
  if (of_get_option('display_readmore') != '1') {
   remove_filter( 'excerpt_more', 'smpl_auto_excerpt_more' );
   remove_filter( 'get_the_excerpt', 'smpl_custom_excerpt_more' );
  }
  the_content( __( 'Continue reading', 'smpl' ) );
 // Blog Home Page
 } elseif (is_home() && of_get_option('content_type') == 'none') {
  return;
 } elseif (is_home() && of_get_option('content_type') == 'content') {
  the_content( __( 'Continue reading', 'smpl' ) );
 } elseif (is_home() && of_get_option('content_type') == 'excerpt') {
  if (of_get_option('display_readmore') != '1') {
   remove_filter( 'excerpt_more', 'smpl_auto_excerpt_more' );
   remove_filter( 'get_the_excerpt', 'smpl_custom_excerpt_more' );
  }
  the_excerpt();
 // All Others
 } else {
  the_content( __( 'Continue reading', 'smpl' ) );
 }
}
add_action('st_content','st_display_content', 1);

{name}
RankRankRank

Total Posts: 99

Joined 2012-11-23

PM

 

Sorry i forgot to say im not running the child theme. I tried to replace to code in the themes functions file line 1537
but it didn’t work.

Your help much appreciated

{name}
RankRankRank

Total Posts: 99

Joined 2012-11-23

PM

 

disregard I’m now using the child theme setup

Thanks

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

smile Glad to hear this!