WordPress.org

Ready to get started?Download WordPress

Forums

Page Template Problem, help needed with sidebar... (3 posts)

  1. ksam28
    Member
    Posted 4 years ago #

    Hi guys,

    I want to create 1 page on my site without a sidebar. I edited the page.php file and created a template. I successfully removed the sidebar, but now the sidebar area is just blank.

    Is there any way for me to centralise the page content to the centre?

    You can see what I mean on my site - http://www.webbusinesspotential.com/test/

    p.s. This site is brand new, so it's bare at the moment.

    Thanks

  2. 40digits
    Member
    Posted 4 years ago #

    Hi,

    The DIV that wraps the column, class=col1, specifies the width of that content.

    I would create a new class with the width you want for the page and add the appropriate style to you styles.css file.

    For example, in styles.css

    .col-full {
    width: 930px;
    }

    And in your template, change the line
    <div class="col1">

    to
    <div class="col-full">

  3. ksam28
    Member
    Posted 4 years ago #

    Hey thanks for this... much appreciated.

    One question, are these changes only made in the page.php template file?

Topic Closed

This topic has been closed to new replies.

About this Topic