ThemeShaper Forums » Thematic

[closed]

Sidebar with child theme Gallery

(7 posts)
  • Started 12 years ago by Valeriek
  • Latest reply from krate
  • This topic is not resolved
  1. Valeriek
    Member

    Hello,

    I am using the child theme Gallery.
    My sidebar is not visible except in some pages... I'd like to see it all thru the website, I checked the php code of all pages and I do see the sidebar there... Any help would be great.
    Valerie

    Posted 12 years ago #
  2. Valeriek
    Member

    Is there another place where we can find support for the Gallery child theme? I may be at the wrong place....

    TY!

    Posted 12 years ago #
  3. Valeriek
    Member

    I removed this from the gallery function file but still no sidebar on most of my pages...

    Please can someone give me a hint???

    Posted 12 years ago #
  4. Valeriek
    Member

    Actually the sidebar (that is in the Primary Aside widget) does show on pages, but not on category pages nor post pages.

    Posted 12 years ago #
  5. there isn't as much support for child themes here as you might hope. for example, things that are really specific to the child theme i can't help you with b/c I don't have Gallery installed and well i already spend too much time here. ;)

    so the best i can do is guess based on my thematic knowledge. when you say:

    "I'd like to see it all thru the website, I checked the php code of all pages and I do see the sidebar there"

    do you mean the sidebar shows up in the html source code when viewed live? if so you have a css problem and should look to your style.css. if you mean you checked all of gallery's templates (category.php, index.php or whatever) and found thematic_sidebar then i would
    look in the theme's functions.php (and other similar files if they exist) for the function that DEFINES the sidebar.

    you can kill the sidebar across the board like this:

    function kill_sidebar(){
    return FALSE;
    }
    add_filter('thematic_sidebar','kill_sidebar');

    so i'd look for something that is filtering thematic_sidebar. hope that helps.

    Posted 12 years ago #
  6. Hi, I had the same problem some days ago, here's how to fix it:
    First of all you have to look for this at the functions.php file:


    // remove sidebar on gallery-style pages
    function remove_sidebar() {
    if(is_page()){
    return TRUE;
    } else {
    return FALSE;
    }
    }

    add_filter('thematic_sidebar', 'remove_sidebar');

    And delete it, take in mind that you need to delete ALL, you could leave the comment if you want to put the code again, later.

    Now if you go to your page you won't see the sidebar, that's because the css is hiding the sidebar, so go to the style.css file and look for:


    #primary {
    display:none
    }

    And delete it.

    If the sidebar is still hidden, then look for the same in the 2c-l-fixed.css file and do the same as before, take in mind that if you want to do this you must copy the 2c-l-fixed.css file to the theme directory, and modify the respective functions.php file to call this new file, this is just to maintain the original file intact.

    Posted 11 years ago #
  7. And take in mind too, that change the style.css file will change all the elements for some part of the page, so you need to check all the time the gallery pages, and also the single post ones...
    If you want to see the result of the changes look at this:
    http://krate.arquicol.com/blog
    Take in mind that I changed some other elements, and look how it is going to look with siebars, also check this:
    http://krate.arquicol.com/archives/216
    You will see some bugs with the artwork container, and with the comments <div>, this is because allowing the sidebars to appear make them to fill space...

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.