WordPress.org

Support

Support » Themes and Templates » [Resolved] [Allure Theme] Can remove sidebar from 'pages' but how do i spread out content?

[Resolved] [Allure Theme] Can remove sidebar from 'pages' but how do i spread out content?

  • TheHighPlainsDrifter
    Member

    @thehighplainsdrifter

    i can remove the sidebar from my ‘pages’ by removing the code

    <?php include(TEMPLATEPATH.”/sidebar.php”);?>

    BUT

    the content is still not spread out across the entire blog page width.

    How can i spread out the content on my pages.

    I want to keep the sidebar visible on my posts btw so i cant just delete it completely

    would appreciate your help

Viewing 5 replies - 1 through 5 (of 5 total)
  • Michael
    Forum Moderator

    @alchymyth

    this is a css/formatting issue, and to help with that, a link to your site is needed, pointing to a page without sidebar.

    TheHighPlainsDrifter
    Member

    @thehighplainsdrifter

    Michael
    Forum Moderator

    @alchymyth

    assuming that the div with the css id #contentleft is in your template, change this:

    <div id="contentleft">

    to:

    <div id="contentleft" style="width: 920px;">

    TheHighPlainsDrifter
    Member

    @thehighplainsdrifter

    Still no luck, ive added some text now just to test it and its still cutting off where the sidebar should be

    *	Content 					     		    *
    ************************************************/
    
    #content {
    	width: 940px;
    	margin: 0px auto 0px;
    	padding: 10px 0px 0px 0px;
    	line-height: 20px;
    	}
    
    #contentleft {
    	float: left;
    	width: 920px;   (i have changed this from 618px)
    	margin: 0px 0px 15px 0px;
    	padding: 10px 0px 20px 10px;
    	display: inline;
    	}
    
    #contentwide {
    	float: left;
    	width: 920px;
    	margin: 0px;
    	padding: 10px 0px 20px 10px;
    	}
    TheHighPlainsDrifter
    Member

    @thehighplainsdrifter

    sorry i misread, i was editing the css file and not the page.php file.

    This now works fine and the content is spead across the entire width of the blog.

    Thankyou very much for your help 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Allure Theme] Can remove sidebar from 'pages' but how do i spread out content?’ is closed to new replies.