Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Bizstudio

    (@ajamm)

    Ok, must be getting too late! I was looking for a full width POST… duh!

    Anyhow, whats the easiest way to may the single post page show as full width?

    start by creating a child theme if you have not done already; http://codex.wordpress.org/Child_Themes

    edit single.php (the copy of single.php which you have savedinthe child theme);
    remove <?php get_sidebar(); ?>
    or comment the code out:
    <?php //get_sidebar(); ?>

    than create a copy of functions.php in your child theme;

    after the first line – which must only contain <?php – add:

    function twentytwelvechild_body_class( $classes ) {
    
    	if ( is_single() )
    		$classes[] = 'full-width';
    
    	return $classes;
    }
    add_filter( 'body_class', 'twentytwelvechild_body_class' );
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Full Width Template?’ is closed to new replies.