• Resolved CNHub

    (@cnhub)


    Hi there,

    I’m using the Admired theme, and my site has two columns with a sidebar on the right.

    After updating to WordPress 4.5 everything looks normal on my home page, but when I open a single post or page the content is centred and the sidebar rather than being aligned on the right side, begins below the post after the comment section.

    Any help is much appreciated!

Viewing 7 replies - 1 through 7 (of 7 total)
  • purpletreemedia

    (@purpletreemedia)

    I have a similar issue with Admired after updating to WordPress 4.5. Haven’t found a fix yet.

    bid0na

    (@bid0na)

    I have the same problem with right sidebar on my site.

    Therefore I restored a backup version prior to the WP update and I am waiting for a fix.

    The right sidebar begins below the post and everything seems OK on the pages without a sidebar.

    Thread Starter CNHub

    (@cnhub)

    The Twenty Eleven theme had the same problem, so using this thread, I worked out how to fix it.

    In the functions.php file you need to locate the following:

    function admired_body_classes( $classes ) {
    
    	if ( ! is_multi_author() ) {
    		$classes[] = 'single-author';
    	}
    
    	if ( is_page_template( 'tmp-onecolumn.php' ) )
    		$classes[] = 'one-column';
    
            if ( is_page_template( 'tmp-threecolumn.php' ) )
    		$classes[] = 'two-sidebars';
    
    	return $classes;
    }
    add_filter( 'body_class', 'admired_body_classes' );

    Then update it to this:

    function admired_body_classes( $classes ) {
    
    	if ( ! is_multi_author() ) {
    		$classes[] = 'single-author';
    	}
    
    	if ( is_page_template( 'tmp-onecolumn.php' ) )
    		$classes[] = 'one-column';
    
            if ( is_page_template( 'tmp-threecolumn.php' ) )
    		$classes[] = 'two-sidebars';{
    
    	        $index = array_search('singular', $classes);
    		if ( $index !== false ) unset($classes[$index]);
    	}
    
    	return $classes;
    }
    add_filter( 'body_class', 'admired_body_classes' );
    purpletreemedia

    (@purpletreemedia)

    Thanks! That fixed it for me.

    nihonscope

    (@nihonscope)

    When I go into the functions.php file under edit… there is absolutely nothing on that page.

    The only other functions.php was for widgets?

    What am I doing wrong?

    averschu

    (@averschu)

    Thanks!

    Linkmeister

    (@linkmeister)

    Got it done. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Theme: Admired] Single Posts and Pages Sidebar Error After Updating Theme’ is closed to new replies.