WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Parse error: syntax error after playing with the php (4 posts)

  1. richcruce
    Member
    Posted 3 years ago #

    Parse error: syntax error, unexpected ')' in /home1/richcruc/public_html/wp-content/themes/agentpress/functions.php on line 124

    I recieved the above error after trying to change the color on my agentpress theme and now I can't access my site or the admin side. I have no idea how to fix it.

    There are 4 different color stylesheets available with this theme: default.css, gray.css, red.css and tan.css - the default stylesheet is blue. To change the stylesheet that is loaded, all you have to do is enter the code below into your child theme's functions.php file. Make sure you change gray.css to the appropriate color style of your choice.

    PHP Code:
    // Change color style sheet
    add_filter('stylesheet_uri', 'child_stylesheet_uri', 10, 2);
    function child_stylesheet_uri($stylesheet, $dir) {
    return $dir . '/gray.css';
    }

    The code above which you add should be placed anywhere after this:

    PHP Code:
    require_once(TEMPLATEPATH.'/lib/init.php');

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Try switching to the Twenty Eleven theme by renaming your current theme's folder in wp-content/themes using FTP or whatever file management application your host provides. That should get you back into your site again.

  3. judy@silentblessings.org
    Member
    Posted 2 years ago #

    I've managed to mess up a style sheet in the Organized Agency theme. I believe I was working in the full width page. Whatever I did has kept me from being able to get into the site again or see any of our pages. Can you help me? If I could download the theme again, I'm pretty sure that would take dare of things, but I can't get to that either, not can I get to Xcloner.

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    Please post your own topic.

Topic Closed

This topic has been closed to new replies.

About this Topic