ThemeShaper Forums » Thematic


Sidebar with child theme Gallery

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


    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.

    Posted 12 years ago #
  2. Valeriek

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


    Posted 12 years ago #
  3. Valeriek

    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

    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;

    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() {
    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 {

    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:
    Take in mind that I changed some other elements, and look how it is going to look with siebars, also check this:
    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.