The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

changed a file without backup function.php (4 posts)

  1. rosaliemagro
    Posted 2 years ago #

    I am using the Expound theme in wordpress and changed the fuction.php file trying to change the footer. Now I am getting the message

    Parse error: syntax error, unexpected T_CLASS in /home/content/27/11058027/html/bellferro/dev/wp-content/themes/expound/functions.php on line 264

    Does anyone know what I can do to fix this. The following is the code I need to fix. I can't even sign into my wordpress anymore. Thanks in advance.

    * Footer credits.
    function expound_display_credits() {
    $text = 'Bellferro Ironworks | Custom Iron Designs' ;
    $text = '<span class="sep"> | </span>';
    $text = '29 Ridge Road West';
    $text = 'Grimsby,ON';
    $text = '905-401-3001';
    echo apply_filters( 'expound_credits_text', $text );
    add_action( 'expound_credits', 'expound_display_credits' );

  2. byankov
    Posted 2 years ago #

    Upload the original functions.php file and you will be able to login.

  3. rosaliemagro
    Posted 2 years ago #

    Did a quick fix. Commented out the offending code so now at least I can log in. I don't have the original functions.php file unless I install WP on a test domain and get the file from there. How else can I get the file?

  4. Andrew Nevins
    Forum moderator
    Posted 2 years ago #

    The original functions.php file comes with the theme's zip file when you download it from WordPress.org: http://wordpress.org/themes/expound

    Alternatively get the code from SVN (assuming you're using v.1.8) http://themes.svn.wordpress.org/expound/1.8/functions.php

Topic Closed

This topic has been closed to new replies.

About this Topic