WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Allure Theme] Can remove sidebar from 'pages' but how do i spread out content? (6 posts)

  1. TheHighPlainsDrifter
    Member
    Posted 3 years ago #

    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

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

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

  3. TheHighPlainsDrifter
    Member
    Posted 3 years ago #

  4. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    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;">

  5. TheHighPlainsDrifter
    Member
    Posted 3 years ago #

    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;
    	}
  6. TheHighPlainsDrifter
    Member
    Posted 3 years ago #

    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 :)

Topic Closed

This topic has been closed to new replies.

About this Topic