[resolved] Twenty Ten "Continue Reading" (5 posts)

  1. Burke Ingraffia
    Posted 5 years ago #

    I have found every instance of the phrase "Continue Reading" in Twenty Ten 1.1 and all of the child themes I developed and replaced it with the word, "More." However, all of my loops still say "Continue Reading."

    What am I missing?

  2. Michael
    Part-Time Forum Moderator
    Posted 5 years ago #

    another instance of the the phrase "Continue Reading" ??

    there is a limited amount of template files in a theme (might be a large number, but still limited) - so search again.

    unless you list all the instances where you have found and changed it (so someone can say: but in this or that file there is something....) , or unless you bundle (zip) all your files and upload them for someone to cross-check, you are the only one to have access and check these files.

    did you check for this phrase in functions.php, where it is appended to excerpts ?

  3. anmari
    Posted 5 years ago #

    Ha! I battled this for awhile and then I got it ....It is described in the comments of the 2010 functions.php, for the length, but the same idea applies:

    * add_action( 'after_setup_theme', 'my_child_theme_setup' );
     * function my_child_theme_setup() {
     *     // We are providing our own filter for excerpt_length (or using the unfiltered value)
     *     remove_filter( 'excerpt_length', 'twentyten_excerpt_length' );
     *     ...
     * }

    Problem is that the child theme's functions.php loads BEFORE the 2010 functions.php (so you can override some of the functions).

    Sooooo , you need to engineer things so that your remove comes after the 2010 add.

    So in your 2010 Child theme functions.php

    function really_remove_the_2010_excerpt_filter () {
    remove_filter( 'excerpt_length', 'twentyten_excerpt_length' );
    remove_filter( 'get_the_excerpt', 'twentyten_custom_excerpt_more' );
    remove_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );


  4. leewutzke
    Posted 4 years ago #

    Here you can see that I changed Excerpt in the 2010 Function PHP from 40 to 900. That removed the Continue Reading Link because I don't have any posts over 900 words. I tried the other ideas posted here but they did not work for me. Here is how it looks:

    function twentyten_excerpt_length( $length ) {
    return 900;
    add_filter( 'excerpt_length', 'twentyten_excerpt_length' );

    * Returns a "Continue Reading" link for excerpts

Topic Closed

This topic has been closed to new replies.

About this Topic