Support » Themes and Templates » How can I stretch my content across when there is no sidebar?

  • Hello,

    I’m trying to figure out how I stretch my content across the full length of my header on all the pages but the main blog. My site is here. Right now, I am using the Content-Sidebar layout for the blog page, and the rest of the pages use a template I created called ‘pagenosidebar.php’. This is just page.php without the sidebar included, so the sidebar is not there but the content area still only stretches part way.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • jack randall

    (@theotherlebowski)

    you’ll probably need to change the width of the content area in your css to fit the new template (might be a good idea to create a new id or class for this so it doesn’t stuff up your regular pages!).

    Michael

    (@alchymyth)

    Forum Moderator

    using the body_class generated for the template, you could try to add these styles to style.css:

    .page-template-pagenosidebar-php #content,
    .page-template-pagenosidebar-php #content-container
    { width:100%!important; }

    Great, worked perfectly! Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I stretch my content across when there is no sidebar?’ is closed to new replies.