Close to making money-then I messed up my HTML...Can anyone help?

by Theone24 5 replies
I was trying to install my google adsense code into the sidebar.php on my Wordpress blog but when I refreshed my site I GOT AN ERROR MESSAGE. Something like syntax error, unexpected '<' in /home/cannotdisclose/public_html/wp-
My sidebar has gone!

I thought I could find/solve the problem:rolleyes: but couldn't, here is what it says now Parse error: syntax error, unexpected T_STRING, expecting '(' in /home/cannotdisclose/public_html/wp-

Can anyone offer some help or advice on what to do?:confused:

Thank You,
#main internet marketing discussion forum #close #htmlcan #making #messed #moneythen
Avatar of Unregistered
  • Profile picture of the author Theone24
    Update, I managed to fx the error on line 5 so now I'm back to
    Parse error: syntax error, unexpected '<' in /home/cannotdisclose/public_html/wp-

    Can anyone help?
    {{ DiscussionBoard.errors[1114402].message }}
  • Profile picture of the author sbucciarel
    Banned
    I can help. This has happened to me with customized themes when I use the wordpress backend to edit the sidebar.php file. If I download it via ftp and edit it with an html editor and then upload it to the same directory, it works fine.
    {{ DiscussionBoard.errors[1114519].message }}
    • Profile picture of the author WendellC
      Jell -

      Hi.

      It might be easier to just upload your original sidebar.php so you can get back to a stable state.

      If you are modifying your sidebar.php file directly for Adsense, you might want to instead consider adding a Text widget to the sidebar and then putting your Adsense code in there.

      Also, you can try the Adsense Deluxe plugin to simplify adding Adsense to your posts too.

      Hope this helps.

      Wendell
      Signature

      List your no opt-in product here for free: No Opt In Required

      {{ DiscussionBoard.errors[1114994].message }}
    • Profile picture of the author Theone24
      Thanks for everyones help. Would it be possible to upload the html on here or not?

      Originally Posted by sbucciarel View Post

      I can help. This has happened to me with customized themes when I use the wordpress backend to edit the sidebar.php file. If I download it via ftp and edit it with an html editor and then upload it to the same directory, it works fine.
      I'm really new at this and I'm not very technical. How do I do this? Could you break it down a little for me please?

      Thanks again!
      {{ DiscussionBoard.errors[1115461].message }}
Avatar of Unregistered

Trending Topics