Support » Themes and Templates » Separate page template, no sidebars, full width

  • Resolved nzde


    I wonder if someone might be able to help me please with a CSS question. I’ve hunted through the forums and through the site but can’t quite achieve what I’m after. I’m trying to create a separate page template which removes the sidebar and enables the page body text to run across the entire width (i.e., where the sidebars were). I’ve figured out how to get rid of the sidebar but I can’t for the life of me figure out to get the page body text to span the whole width of the page. I understand it has something to do with creating a new DIV in the style sheet and calling that from within the page template, but I’m not sufficiently well versed in code to figure that out. I’d gladly donate a reasonable amount into the paypal account of whoever first provides a complete answer to this. 🙂 The theme I’m using is 3K2 by Bharath Kumar.

Viewing 1 replies (of 1 total)
  • Sorry for the bother; I’ve figured this out. For those interested, I added this to the style.css file:

    #main.fullwidth {
    width: 90% !important;
    float: left;
    padding: 20px 0 10px;
    margin: 0 10px 0 30px;
    display: inline;/* Main column full width with No Sidebar template */

    And then I created a page template as follows:

    Template Name: No sidebar2

    <?php get_header(); ?>

    <div class=”content”>

    <div id=”main” class=”fullwidth”>

    <div id=”current-content”>

    <div id=”primarycontent” class=”hfeed”>

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

    <div id=”post-<?php the_ID(); ?>” class=”<?php k2_post_class(); ?>”>

    <div class=”page-head”>

    <h2>” rel=”bookmark” title='<?php printf( __(‘Permanent Link to “%s”‘,’k2_domain’), wp_specialchars(get_the_title(),1) ); ?>’><?php the_title(); ?></h2>

    <?php edit_post_link(__(‘Edit’,’k2_domain’), ‘<span class=”entry-edit”>’,'</span>’); ?>


    <div class=”entry-content”>

    <?php the_content(); ?>

    <?php link_pages(‘<p>‘.__(‘Pages:’,’k2_domain’).’ ‘, ‘</p>’, ‘number’); ?>


    </div> <!– #post-ID –>

    <?php } // End the Loop ?>

    </div> <!– #primarycontent .hfeed –>

    </div> <!– #current-content –>

    <div id=”dynamic-content”></div>

    </div> <!– #primary –>

    </div> <!– .content –>

    <?php get_footer(); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Separate page template, no sidebars, full width’ is closed to new replies.