Hi,
I'm trying to hide some asides from frontpage/homepage so I start editing my functions.php file. I got something like this:
/**
* Remove primary and secondary assides from home page
*/
function ct_remove_widgets_from_homepage($content) {
if(is_front_page()) {
unset($content['Primary Aside']);
unset($content['Secondary Aside']);
}
return $content;
}
add_filter('thematic_widgetized_areas', 'ct_remove_widgets_from_homepage');
The code above doesn't work. I can still get both the asides. var_dump(is_front_page()|is_home()) returns bool(false) in both cases.
Any tips?
Thanks in advance.