WordPress.org

Support

Support » How-To and Troubleshooting » Website destroyed – Parse error

Website destroyed – Parse error

  • petersenpictures

    @petersenpictures

    I can no longer login to my account. The only thing that shows on my screen when I try to reach my website or logon is this:

    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/content/56/9398856/html/Petersen Pictures/wp-content/themes/minimatica/functions.php on line 432

    Everything got wiped out when I changed a few characters of code following this post’s instructions: http://wordpress.org/support/topic/edit-slider-captions?replies=2
    _________________________________________________________________________________
    Don’t know if you’re still trying, but I found the answer buried in another thread here.
    The default appears to show up to 55 words after the title of your post.
    Paste the following into your functions.php to alter that. (As shown, it will cut it down to 10)

    function minimatica_excerpt_length( $length ) {
    return 10;
    }
    add_filter( ‘excerpt_length’, ‘minimatica_excerpt_length’ );
    If you want no text beyond the post title, set the above to 0. However, by default (at least on mine) it was still adding a “…” as if there was additional text coming.

    To get rid of that, alter the minimatica_excerpt_more function to read:

    function minimatica_excerpt_more($more) {
    return ”;
    }
    __________________________________________________________________________________
    I did the very last part above, replacing maybe 5 numbers, thinking it would just get rid of my subtext on the homepage, but now it totally wiped out my website. I can’t even access my account now.

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Website destroyed – Parse error’ is closed to new replies.
Skip to toolbar