Atahualpa theme error. Help please !!!
I followed the thread on Adding AdSense to content http://forum.bytesforall.com/showthread.php?t=431
after i added the code you recommended At the bottom of /atahualpa/functions.php add the following code <?php function bfa_add_adsense($post_body_content) { adsense_ad = '<div class="bfa-adsense"> PUT ( i substitute my adsense code) YOUR WHOLE ADSENSE CODE HERE </div>'; if ( is_single() ) { if (strpos($post_body_content,'%adsense%')!==FALSE) { $post_body_content = str_replace('%adsense%', $adsense_ad, $post_body_content); } else { $post_body_content = $adsense_ad . $post_body_content; } } return $post_body_content; } add_filter('the_content', 'bfa_add_adsense'); ?> This is what I got. My blog & wordpress dashboard disappeared. Here is the error message: Parse error: syntax error, unexpected '=' in /home/evename/public_html/wp-content/themes/atahualpa.3.4.4/atahualpa/functions.php on line 658 Please help. Thank you. |
if this is line658 you probably need a '$' before adsense_ad
HTML Code:
adsense_ad = '<div class="bfa-adsense"> |
Thanks for your help.
I am new to this code thing. Now the entire website and dashboard are unable to open. How can I revise the code? Thanks again. |
copy a fresh copy of that module to the website via FTP that will back out your changes
|
thank you so much!!!
Let me give it a try.... |
All times are GMT -6. The time now is 02:59 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.