Forums

Having a Bit of Trouble After editing FUNCTIONS.PHP (4 posts)

  1. Danzie
    Member
    Posted 2 years ago #

    So, after editing the functions.php section of the theme (which was the wordpress default kind of like Kubrick), this is what happened:

    Parse error: syntax error, unexpected '<' in /home/content/r/a/d/radicalouting/html/wp-content/themes/default/functions.php on line 9

    You can see if you go to:
    http://radicalouting.com/

    I was trying to add on another sidebar to the left hand side of the theme. Apparently something went wrong... How do I resolve this? I can't even log-in to the admin page to change the mistake. Any suggestions?

    I'm not exactly sure that the version I was using was 2.8.3., just started editing the blog...

    Any help would be awesome.

  2. stvwlf
    Member
    Posted 2 years ago #

    Hi

    try going into your webhosting control panel's file manager, into
    /home/content/r/a/d/radicalouting/html/wp-content/themes/default/functions.php
    and edit the file from within the file manager. you have an error on line 9 or line 8. You can continue editing and saving within the file manager until you resolve the error.

    If you have an FTP program, you could use that instead and edit locally, doing the same thing as the above, until you resolve the problem.

  3. intheknowmoms
    Member
    Posted 2 years ago #

    I;m having the exact same problem! I wanted to add another sidebar. The coding didn't work so I returned the coding back to what it originally was and it still won't work. Whole site is down. Anything wrong with this?

    <?php
    if ( function_exists('register_sidebar') ) {
       register_sidebar(array(
           'before_widget' => '<li id="%1$s" class="widget %2$s">',
           'after_widget' => '</li>',
           'before_title' => '<h2 class="widgettitle">',
           'after_title' => '</h2>',
       ));
    }
    ?>
  4. stvwlf
    Member
    Posted 2 years ago #

    @intheknowmoms

    what is the exact error message you are getting? copy and paste from screen into post here

Topic Closed

This topic has been closed to new replies.

About this Topic