Hi Chris, thanks for the fast response and for Thematic!
I was developing using Sandbox and suddenly came upon Thematic and decided to move my whole web-site design effort over to it, it's awesome!
Basically, I'm designing a personal photography portfolio and I want all pages with my galleries from NextGen Gallery not to have a sidebar.
What I don't want is edit functions.php every time I create a gallery to have the sidebar excluded. I want it to be "automatic".
I figured I could do it in two ways:
1. Excluding the sidebar on all child-pages of portfolio
2. Excluding the sidebar form all pages with a specific body class
Adding classes is easy and actually Thematic pretty much generates automatically the classes I need to tag all my child pages so writing a function to not display the sidebar on pages with the class.x would do and could extend to galleries generated on blog posts not only on the portfolio.
Currently I have this on my functions.php file so I have to add each page manually to it:
// filter thematic_sidebar() .. not to display the primary and secondary sidebar on selected pages
function remove_sidebar() {
if (is_page(array('published','home','services','about','portfolio','links','contact','copyright-notice'))) {
return FALSE;
} else {
return TRUE;
}
}
add_filter('thematic_sidebar', 'remove_sidebar');
Any thoughts?
Thanks loads!