WordPress.org

Ready to get started?Download WordPress

Forums

Mon Cahier
[resolved] How to customize a page to one column layout? (9 posts)

  1. cingsen
    Member
    Posted 1 year ago #

    I am trying to figure how to change one of my page to a one column layout.
    Is there an easier way to do this?
    thanks

    http://wordpress.org/extend/themes/mon-cahier/

  2. Christine Rondeau
    http://www.bluelimemedia.com
    Theme Author

    Posted 1 year ago #

    One way to do this would be to make a child theme and in your theme, you would create a custom template for that one page.

    Another way would be to use a plugin like widget logic that allows you to hide the widgets from certain pages.

  3. Roll
    Member
    Posted 1 year ago #

    I suggest to duplicate page.php and rename it.
    After that remove code within which defines sidebar and that you will be able to choose template on that page without sidebar.
    this should also help

  4. cingsen
    Member
    Posted 1 year ago #

    so, i did use something like widget logic - dynamic widget and able to get rid of the sidebar, but the page won't stretch the whole way. Any clue where to look next, i want my 'forum' page to stretch ,
    thanks

  5. Christine Rondeau
    http://www.bluelimemedia.com
    Theme Author

    Posted 1 year ago #

    HI cingsen,
    In that case, you'll need to make some changes to your css.
    Did you create a child theme?
    If so, can you provide a link to your site?
    I can have a look and give you the css you need to add.

    You can add custom width to any page by using the body_class().

  6. cingsen
    Member
    Posted 1 year ago #

    so fixed it, here is what i did:
    i edit the style.css , i added inside #main
    .site-content2 {
    float: left;
    width:960px;
    padding:30px 20px;
    }

    next i created a child template called fullwidth.php
    with this code
    <?php
    /*
    Template Name: Full Width
    */
    ?>
    <?php

    get_header(); ?>

    <div id="primary" class="site-content2">
    <div id="content" role="main">

    <?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( 'content', 'page' ); ?>

    <?php comments_template( '', true ); ?>

    <?php endwhile; // end of the loop. ?>

    </div><!-- #content -->
    </div><!-- #primary .site-content -->

    <?php get_footer(); ?>

    and it works perfect,
    let me know if this is ok ?
    thanks

  7. AriRome15
    Member
    Posted 1 year ago #

    Is there a way to change the whole theme to be full width?

  8. Christine Rondeau
    http://www.bluelimemedia.com
    Theme Author

    Posted 1 year ago #

    Making the necessary changes for a full width sites would require quite a bit of work.
    In your style.css, you would have to change all instances of width in pixels to percentages.

    The theme wasn't designed to be full-width. I'm sure it can be done, but it's not just one line of code unfortunately.

  9. AriRome15
    Member
    Posted 1 year ago #

    Cool, got it. Thanks for the this theme btw, it's awesome!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags