Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   inner right sidebar still showing up even when putting post id (http://forum.bytesforall.com/showthread.php?t=8529)

kachaloo Jul 26, 2010 10:23 AM

inner right sidebar still showing up even when putting post id
 
Hi,
I am using Atahualpa 3.4.9.

I am trying to use the feature to hide my inner side bar for certain posts but when I put it it does not seem to work.

Please help.

Cheers,
kachaloo

kachaloo Jul 26, 2010 10:55 AM

I even upgraded to Atahualpa 3.5.3 and even then the problem exists.

juggledad Jul 26, 2010 11:20 AM

so what did you try?

kachaloo Jul 26, 2010 11:28 AM

I put the post id in the "RIGHT INNER sidebar: Don't display on Pages:" and it did not work.

I then assumped that its a code problem and upgraded to the latest version and even then it did not work.


Please advice what else can I do ?


Cheers,
Kachaloo

kachaloo Jul 26, 2010 12:11 PM

I found another thread with the same problem at

http://forum.bytesforall.com/showthr...t=hide+sidebar


apparently we cannot hide side bars for posts. I was wondering if this still holds true as there have been many updates to the theme.


Cheers,
Kachaloo

juggledad Jul 26, 2010 01:43 PM

This patch should allow you to specify the POST ID in addition to the PAGE ID so the sidebar will not show on the single post page for the POST ID specified.

This is for version 3.5.3
edit bfa_get_options.php and find lines 370-373 which should be
HTML Code:

if ( is_page() ) {
        global $wp_query;
        $current_page_id = $wp_query->get_queried_object_id();
        }

and chenage then to
HTML Code:

#if ( is_page() ) {
        global $wp_query;
        $current_page_id = $wp_query->get_queried_object_id();
#        }

fine line 384 which should be
HTML Code:

if ( is_page() AND (function_exists('is_front_page') ? !is_front_page() : '') AND !is_home() OR is_single() ) {
and change it to
HTML Code:

if ( is_page() AND (function_exists('is_front_page') ? !is_front_page() : '') AND !is_home() ) {

kachaloo Jul 26, 2010 09:59 PM

Hi,
Thank you for your prompt answer. I did as you mentioned and its still not working.

I am using Atahualpa 3.5.3 with wp 3.0





Cheers,
Kachaloo

juggledad Jul 27, 2010 04:07 AM

did you also add the POST ID to the exclude?
please go to ATO->Export/Import settings and do an EXPORT and attach it to a reply (use the paperclip icon)


All times are GMT -6. The time now is 12:46 AM.

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