• Resolved lorenetroyer

    (@lorenetroyer)


    I tried to put adsense in my sidebar using the theme editor according to some wordpress instructions I found on the internet. Now there is a blank space and the following error messsage: Parse error: syntax error, unexpected ‘<‘ in /home/ltrotro5/public_html/blog/wp-content/themes/default/sidebar.php on line 72
    I deleted the adsense code. I’m thinking that a novice like me should probably not be attempting these things. Any advice? Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Just wondering, could you have badly edited your page and left an unclosed tag ?
    I mean a tag (div, p, a href, or a php code), whatever it is, that bas a beginning not no official ending.

    I don’t know if that is the problem, but that may be be an idea to check on that…

    Thread Starter lorenetroyer

    (@lorenetroyer)

    I really don’t know. Is there a way to restore the original text that was in the theme editor?

    You could upload the original sidebar.php from your theme directory.

    Thread Starter lorenetroyer

    (@lorenetroyer)

    I’m sure this is probably a silly question but how do you do that?

    I’m not sure how your site is hosted. Usually you can access files on your server using an ftp program. If you’ve installed WordPress yourself, you could just re-upload the sidebar.php file which you’ll find in your wp-content/themes/default/ directory.

    Thread Starter lorenetroyer

    (@lorenetroyer)

    I go to theme editor, select side bar and WordPress default and then push update file. It says file edited successfully but nothing has changed.

    Going back to what Sabinou suggested, here is content thats contained in the sidebar theme editor from about line
    65.
    <?php wp_meta(); ?>

    <?php }?>

    <?php endif;>

    </div>

    Thread Starter lorenetroyer

    (@lorenetroyer)

    It was cut off. Here’s the rest of it.

    <?php wp_meta(); ?>

    <?php }?>

    <?php endif;>

    </div>

    The theme editor doesn’t have an undo function. It merely edits the file on your server and that’s that.

    This is the sidebar.php code for the default theme in WordPress 2.2.2, although I’m not sure I’m helping you with this, really..

    Thread Starter lorenetroyer

    (@lorenetroyer)

    That did it! I changed the sidebar.php code to match yours and my website is now back to normal. Whew! Thank-you so much.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘sidebar error message’ is closed to new replies.