Support » Themes and Templates » How to remove excerpts from home page?

  • I want to disable excerpts from being displayed at home page…

    How can i do that?

    Here is the code that I believe is for excerpt..

    // Get limit excerpt
    function tj_content_limit($max_char, $more_link_text = '', $stripteaser = 0, $more_file = '') {
        $content = get_the_content($more_link_text, $stripteaser, $more_file);
        $content = apply_filters('the_content', $content);
        $content = str_replace(']]>', ']]>', $content);
        $content = strip_tags($content);
    
       if (strlen($_GET['p']) > 0) {
          echo "";
          echo $content;
          echo "...";
       }
       else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) {
            $content = substr($content, 0, $espacio);
            $content = $content;
            echo "";
            echo $content;
            echo "...";
       }
       else {
          echo "";
          echo $content;
       }
    
    }

    Which line should I remove to disable excerpts from being displayed?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can adjust the excerpt settings via Settings > Exerpt

    I’m guessing you might mean that you want your homepage to be a static content page rather than have blog excerpts on it… if this is the case, then go to Settings > Reading to tell WP what to show on your front page.

    I want to display just the thumbnail, cutting off excerpts totally….

    Chip Bennett

    (@chipbennett)

    Theme Review Admin

    What Theme are you using?

    Please post a link to the site/page in question so we can assist you better…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to remove excerpts from home page?’ is closed to new replies.