• Resolved stormchild

    (@stormchild)


    When I originally installed it, pages were working fine. Now when I click on a page or preview, I get this error:

    Fatal error: Call to undefined function colorful_continue_reading_link() in /home/content/69/9946569/html/cori/wp-content/themes/d5-colorful/functions.php on line 67

    Posts and other functions seem to be working fine. I love this theme and want to continue using it, but half my blog doesn’t work now.

    I un-installed, deleted and re-installed, but that didn’t fix it.

    Thanks for any help you can give,

    Cori

Viewing 2 replies - 1 through 2 (of 2 total)
  • I see the issue also. I will provide a fix once I find one.

    In functions.php change line 67 to read:
    return '… '.colorful_continue_reading_link($more);

    After line 78:
    add_filter( 'get_the_excerpt', 'colorful_custom_excerpt_more' );

    Add this:

    function colorful_continue_reading_link($more) {
    	global $post;
    	return '<p class="read-more"><a href="'. get_permalink($post->ID) . '">Read the rest of this page »</a></p>';

    That should fix it up. Also if you want to make all posts excerpts without adding the more tag, you can go to index.php and change line 17 to read:

    <?php the_excerpt('<p class="read-more">Read the rest of this page »</p>'); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page function stopped working’ is closed to new replies.