WordPress.org

Ready to get started?Download WordPress

Forums

How to remove excerpts from home page? (5 posts)

  1. FunFused.com
    Member
    Posted 1 year ago #

    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!

  2. Maeve Lander
    Member
    Posted 1 year ago #

    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.

  3. FunFused.com
    Member
    Posted 1 year ago #

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

  4. Chip Bennett
    Theme Review Admin
    Posted 1 year ago #

    What Theme are you using?

  5. Maeve Lander
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic