Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] Right Sidebar missing ...Tried everything! Please help! (http://forum.bytesforall.com/showthread.php?t=2129)

hapit Jun 21, 2009 05:11 AM

[SOLVED] Right Sidebar missing ...Tried everything! Please help!
 
Hi there,

I'm tearing my hair out with this problem so would appreciate any suggestions! My right sidebar is missing on my home page. If I click on my sub-pages, it appears just fine! What's going on?? One min it was there and the next, it wasn't!

I've searched the forum and tried to rectify it by what's been suggested to others but I'm complete baffled!

1. I checked the sidebar option in the Atahualpa Theme options and it's all checked.
2. I have my footer.php. It's not missing.
3. I don't write copy and paste my posts from MS Word. I write them straight in the Wordpress user interface.

Please please help...my site is: www.hapit.co.uk I'm more than happy to make a donation via Paypal...

juggledad Jun 21, 2009 06:31 AM

your getting an error on your home page;
<b>Fatal error</b>: Call to undefined function show_posts_nav() in <b>E:\domains\h\hapit.co.uk\user\htdocs\wp-content\themes\atahualpa.3.2\atahualpa\index.php</b> on line <b>256</b><br />

Have you made any changes to the Atahualpa code?
What version of WP are you using?
Are you in fact using Atahualpa 3.2?
What plugins do you have?

hapit Jun 21, 2009 06:51 AM

Thanks for your reply.

1. The only changes I've added is the google adsense code I'm implemented with help from the forum. :

<?php
function bfa_add_adsense($post_body_content) {
$adsense_ad = '
<div class="bfa-adsense">
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxx";
/* Below posts, 468x60 */
google_ad_slot = "xxxxxxxxx";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</div>
';
if ( is_single() OR is_home() ) {
if (strpos($post_body_content,'%adsense%')!==FALSE) {
$post_body_content = str_replace('%adsense%', $adsense_ad, $post_body_content);
} else {
$post_body_content = $post_body_content . $adsense_ad;
}
}
return $post_body_content;
}
add_filter('the_content', 'bfa_add_adsense');
?>
<br>
</br>

2. I'm using WP 2.8

3. I'm using Atahualpa 3.2.

4. Plugins I have are: Akismet, Sociable, All in One SEO Pack, Wordpress.com Stats.


Note: For point 1, I had no problems when I first implemented the google adsense code. Everything was fine. I had my adsense and I had my right sidebar. Today however, I thought I would remove my adsense code and everything went berserk! Right sidebar went missing. It shows on my Pages but just not on my homepage.

The error u're talking about...I haven't seen it...are you saying that you don't even see my site? All you get is an error message? That worries me cause I don't see an error messages...just a normal site page with a missing sidebar on the right on my home page.

Thank you so much for your help...I really really appreciate it...

hapit Jun 21, 2009 07:06 AM

oh yes...I do see the error now...it's right at the bottom of my site.

I didn't changed index.php at all. I've only tweaked functions.php for my adsense code.

Even after removing the adsense code alltogether, I'm stuck with a missing right sidebar. I've cleared my cache as well.

Should I upgrade to Atahualpa 3.3.3?

paulae Jun 21, 2009 07:16 AM

I'm wondering, because of the function show_posts_nav() part of the error message, if she has some kind of navigation plugin running that is conflicting with the theme or another plugin? I know a lot of plugins don't work with WP 2.8.

Hapit, have you tried deactivating plugins one by one to see if one of them is the culprit?

hapit Jun 21, 2009 07:28 AM

Hi there,

yes I just tried that and it makes no difference. Footer and right sidebar still not showing.

:(

juggledad Jun 21, 2009 10:58 AM

Hapit,
did I understand you that your site was running fine with Atahualpa 3.2 and WP 2.8 and then you removed the adsense code and the problem started happening?

I would suggest getting a fresh copy of Atahualpa 3.2 and re-upload functions.php to our site. You may have made a type when removing the adsense code., and this will put the original code back in

hapit Jun 21, 2009 11:51 AM

it worked! Thank you so so much! You're brilliant!


All times are GMT -6. The time now is 11:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.