• Hello All!

    This is the link to my site livingleashless.com
    I have a child theme that I was trying to add a post to a section using the php in the loop.
    I entered this code:

    <?php if ( cnr_have_children() ) : while ( cnr_have_children() ) : cnr_next_child(); ?>
    <h3><?php the_title(); ?></h3>
    <div><?php the_excerpt(); ?></div>
    <?php endwhile; endif; ?>

    and after hitting update was given this message on the screen:

    Parse error: syntax error, unexpected ‘<‘ in /home/livin270/public_html/wp-content/themes/sydney-child/functions.php on line 21

    I hit the back button, deleted the code, and hit update again, but to no avail I am still being given the same parse error message. Even when trying to get to the admin page through the back door by using livingleashless.com/wp-admin I was given the same message.

    Please help! What do I have to do to get my site back.

    Thank You!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    NEVER EVER EVER EVER (ever!) edit PHP via Appearance->editor.

    Grab a new copy of the Sydney theme at https://wordpress.org/themes/sydney/ Extract the zip file and upload the theme’s functions.php over the one you modified.

    I agree with the above.

    If you rename sydney-child/functions.php to something else sydney-child/old-functions.php via FTP/similar, this might be enough to get you back into the site while you resolve the issue.

    Thread Starter edavenport

    (@edavenport)

    The problem is that I can’t access my page at all, not even the admin section. When I search Livingleashless.com to access my site I get a white page with the parse error. I use webhostinghub, should I try accessing it through them?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Use FTP to replace the file as I noted above.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can no longer access my site!’ is closed to new replies.