![]() | | ||||||||
| | #1 |
| HyperActive Warrior Join Date: May 2009
Posts: 144
Thanks: 35
Thanked 3 Times in 2 Posts
|
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 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? ![]() Thank You, |
| | |
| | #2 |
| HyperActive Warrior Join Date: May 2009
Posts: 144
Thanks: 35
Thanked 3 Times in 2 Posts
|
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? |
| | |
| | #3 |
| Suzanne War Room Member Join Date: Jan 2007 Location: Virginia, USA.
Posts: 10,681
Blog Entries: 1 Thanks: 1,215
Thanked 4,069 Times in 2,276 Posts
|
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.
|
| | |
| | |
| | #4 |
| HyperActive Warrior War Room Member Join Date: Jan 2008 Location: Southern California
Posts: 190
Thanks: 9
Thanked 52 Times in 34 Posts
|
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 |
|
Get a free one-way link from No Opt In Required for your no opt-in product. PM for details. Twitt..er...Me! | |
| | |
| | #5 | |
| HyperActive Warrior Join Date: May 2009
Posts: 144
Thanks: 35
Thanked 3 Times in 2 Posts
|
Thanks for everyones help. Would it be possible to upload the html on here or not? Quote:
Thanks again! | |
| | |
| | #6 |
| HyperActive Warrior Join Date: May 2009
Posts: 144
Thanks: 35
Thanked 3 Times in 2 Posts
|
problem resolved |
| | |
![]() |
|
| Tags |
| close, htmlcan, making, messed, moneythen |
| Thread Tools | |
| |
![]() |