Instructions to create page that spans 100% ? (4 posts)

  1. endloser
    Posted 7 years ago #

    All over the Internet I see questions and discussions about how especially if you want to have a WP page as a home page you generally may want it to not have a sidebar and span the width of the page.

    Yet I have never found any website or theme that offers the answer.

    Do you know of any source or example CSS code that includes both a "regular" page and a page without a sidebar where the content spans 100% wide?

    I'm sure this is a no brainer for any WP / CSS expert.

    Thank you!

  2. @mercime
    Volunteer Moderator
    Posted 7 years ago #

    create blank home.php then put
    <?php get_header(); ?>
    <div id="span100">
    // put content here
    <?php get_footer(); ?>
    in style.css
    #span100 {
         clear: both;
         width: 100%;
         //and other declarations you might need
  3. moshu
    Posted 7 years ago #

    Don't call it home.php - that's a specific template file in the WP system, and it might replace your index.php in places where you wouldn't want that. Call it anything else - mercime.php :)

  4. @mercime
    Volunteer Moderator
    Posted 7 years ago #

    cheers ;)

Topic Closed

This topic has been closed to new replies.

About this Topic