WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] unexpected T_CONSTANT_ENCAPSED_STRING in functions.php (2 posts)

  1. kcandco6
    Member
    Posted 11 months ago #

    I'm getting this error:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/62/10897262/html/wp-content/themes/childishly-simple/functions.php on line 212

    I believe it's referencing a problem with this code:

    `/*
    =Change text [...] after the default excerpt
    */

    add_filter( 'excerpt_more', 'childishlysimple_new_excerpt_more' );

    function childishlysimple_new_excerpt_more( $post ) {
    global $post;
    return '<span class="more-excerpt"><a>ID ) . '">' . ' (continue reading...) ' . '</a></span>';
    }`

    I have compared my current functions file to the original file and I don't see any differences. I am self-taught when it comes to php and I don't know enough to know what the problem is or how to fix it. Furthermore, I can't even access my dashboard to fix the problem! Please help!

    (My site is http://brevardnaturally.com/)

  2. kcandco6
    Member
    Posted 11 months ago #

    Nevermind - I figured it out! Phew!

Reply

You must log in to post.

About this Topic