Support » Fixing WordPress » Parse error: syntax error after playing with the php

  • 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’);

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    (@esmi)

    Forum Moderator

    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.

    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.

    esmi

    (@esmi)

    Forum Moderator

    Please post your own topic.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Parse error: syntax error after playing with the php’ is closed to new replies.