WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing Excerpts (4 posts)

  1. IrrationalThinker
    Member
    Posted 2 years ago #

    I am trying to remove excerpts from my theme. I tried extending the exceprt length to accomodate my posts, but it removes the formatting for the entire post. How do I remove the excerpts all together?

    The theme I am using is: http://wordpress.org/extend/themes/ascetica

    This is the code that is currently in function.php

    /**
    * Excerpt ending
    *
    */
    function ascetica_excerpt_more( $more ) {
    return '...';
    }

    /**
    * Custom excerpt lengths
    *
    */
    function ascetica_excerpt_length( $length ) {
    return 999;
    }

  2. James Duffell
    Member
    Posted 2 years ago #

    @IrrationalThinker

    You could always replace the_excerpt tag with the the_content if you wish to display the whole post along with the formatting.

    You'll need to locate this within your theme files, chances are you'll find it within either loop.php or index.php depending on how your theme was coded.

    ^JD

  3. IrrationalThinker
    Member
    Posted 2 years ago #

    Beautiful! I had to go on a scavenger hunt to find it, but I did. I did not have a loop.php. I had several index, home, and page templates, and NONE of them had the_excerpt tag. Finally, I found that it was pulling from abother file (content.php) and there it was.

    Thanks so much for your help!!!!! I have been working on this all day...lol.

  4. James Duffell
    Member
    Posted 2 years ago #

    @IrrationalThinker

    No problem at all, I should of mentioned content.php I was getting lost in my own theme there :)

    ^JD

Topic Closed

This topic has been closed to new replies.

About this Topic