WordPress.org

Support

Support » Themes and Templates » Oxygen » Posts without right sidebar

Posts without right sidebar

  • The Oxygen theme is great but the posts view with sidebars on left and right makes it too busy. Does anyone know of a way to remove the right sidebar in posts and for posts to run the full width, but not the homepage?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Cristobal

    @cristobal-paez

    Hello!!:..I have teh same problem…any solution?…

    Michael

    @alchymyth

    Forum Moderator

    @cristobal paez

    please start your own topic (scroll down on this link http://wordpress.org/support/theme/oxygen ) and ideally add a link to your site.

    actionmatt

    @actionmatt

    thanks alchymyth, but what is the point of starting another topic if this one is getting any answers?

    Are there any suggestions for answering this topic?

    esmi

    @esmi

    Forum Moderator

    You could always try asking on http://www.organicthemes.com/support

    Michael

    @alchymyth

    Forum Moderator

    the point of starting a new topic is that hardly any two topics are the same.
    http://codex.wordpress.org/Forum_Welcome#Where_To_Post

    Are there any suggestions for answering this topic?

    possibly consider to post a link to your site to illustrate where you have too many sidebars.

    just be aware that links will not get deleted any time later, if you don’t like your site to appear in search engines: http://codex.wordpress.org/Forum_Welcome#Deleting_.2F_Editing_Posts

    aprilword

    @aprilword

    i was told that the sidebars can not be removed from the posts and home page separately – they are connected

    also, I can not get the post content to fill the page – would like some help with that if possible..

    earthouse.org

    WPyogi

    @wpyogi

    Forum Moderator

    @aprilword – looks like your site is on WordPress.COM?? If so, you’ll need to post on their forums: http://en.forums.wordpress.com/

    These forums are for self-hosted WordPress.ORG sites — not the same thing, but a common confusion.

    actionmatt,
    i made what you want this way:
    1) In the theme folder open file functions.php and make some changes:
    instead:

    function oxygen_disable_sidebars( $sidebars_widgets ) {
    
    	global $wp_query;
    
    	    if ( is_page_template( 'page-template-fullwidth.php' ) ) {
    		    $sidebars_widgets['primary'] = false;
    			$sidebars_widgets['secondary'] = false;
    	    }
    
    	return $sidebars_widgets;
    }
    
    function oxygen_embed_defaults( $args ) {
    
    	$args['width'] = 470;
    
    	if ( is_page_template( 'page-template-fullwidth.php' ) )
    		$args['width'] = 940;
    
    	return $args;
    
    <strong>write this:</strong>
    function oxygen_disable_sidebars( $sidebars_widgets ) {
    
    	global $wp_query;
    
    	    if ( is_single() ) {
    			$sidebars_widgets['secondary'] = false;
    	    }
    		if ( is_page_template( 'page-template-fullwidth.php' ) ) {
    		    $sidebars_widgets['primary'] = false;
    			$sidebars_widgets['secondary'] = false;
    	    }
    
    	return $sidebars_widgets;
    }
    
    function oxygen_embed_defaults( $args ) {
    
    	$args['width'] = 470;
    
    	if ( is_single() )
    		$args['width'] = 940;
    	if ( is_page_template( 'page-template-fullwidth.php' ) )
    		$args['width'] = 940;
    	return $args;
    }

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use a pastebin. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]

    2) Open style.css and add this selector:

    #content22 {
    float: left;
    width: 100%; /* 470 / 750 = 0.6266666666666667 */
    margin: 0 0 30px 0;
    }

    3) Open post.php
    Find <div id=”content”>
    And write instead <div id=”content22″>

    Thats all. This remove in post page Secondary Sidebar and full its with content.
    You may need to disable posting theme img thumbnail in the post, because it not very nice with this change.
    How to do it you may find in this forum.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Posts without right sidebar’ is closed to new replies.
Skip to toolbar