ThemeShaper Forums » Thematic

[closed]

Hide logo and access on page and all child pages

(5 posts)
  • Started 9 years ago by chris_s
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. Title pretty much explains it. I need to hide the logo, access and siteinfo from certain pages and their children. Just not sure how to approach this function...

    Posted 9 years ago #
  2. if you add:
    define('THEMATIC_COMPATIBLE_BODY_CLASS', true);
    define('THEMATIC_COMPATIBLE_POST_CLASS', true);
    to your child theme's function.php file, you can exclude and add stuff to individual pages and posts via your child theme's style.css for example:

    body.slug-oink-convention #access
    display:none
    
    }

    the access div would un-display on the page named "oink convention" only

    Posted 9 years ago #
  3. I was able to accomplish it with the following code.

    function remove_access() {
    	if(is_page(array(63, 386, 391, 405, 'forums'))) {
    	remove_action('thematic_header','thematic_blogtitle',3);
    	remove_action('thematic_header', 'thematic_blogdescription',5);
    	remove_action('thematic_header', 'thematic_brandingclosing',7);
    	remove_action('thematic_header','thematic_access',9);
    	remove_action('thematic_footer','thematic_siteinfoopen',20);
    	remove_action('thematic_footer','thematic_siteinfo',30);
    	}
    }
    add_action('template_redirect', 'remove_access');
    Posted 9 years ago #
  4. Correction. This did not hide the areas on the child pages. Anyone have any idea how I can do this with a conditional statement? Thanks.

    Posted 9 years ago #
  5. in the codex there is a function for testing for a subpage that might help

    Snippet 2

    http://codex.wordpress.org/Conditional_Tags

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.