Support » Theme: Dazzling » How to use full-width-template (single column)?

  • Resolved John Shen



    I wonder how I can use the “full-width-template” or single-column layout?

    Best regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Silkalns


    One/few one page or on all pages?

    For one page you can use template Full-Width(no sidebar) when publishing it. For the entire website it gets a lot more complicated.

    You should replace col-md-8 with col-md-12 in all theme template files and this will make your post full-width. Afterwards you will have to remove sidebar itself and it can be done by removing this from the same template file.

    <?php get_sidebar(); ?>

    Thanks Silkalns,

    For all other newbies who may wonder which files to edit:

    Replace col-md-8 with col-md-12 and <!-- ?php get_sidebar(); ? -> in file:
    index.php, single.php, page.php.
    will do.

    Theme Author Silkalns


    Thank you for explaining it to others!

    Probably in archive.php and image.php as well but it depends if you actually use these template files.

    Yup, they should be changed as well if need to, but I think I’d keep these for reader’s better archive searching. I also used the following codes in sidebar.php to shrink the long archive list. 🙂

    <!-- ?php wp_get_archives( array( 'type' => 'monthly' ) ); ? -->
    <select name="archive-dropdown" onChange='document.location.href=this.options[this.selectedIndex].value;'>
    <option value=""><?php echo attribute_escape(__('Select Month')); ?></option>
    <?php wp_get_archives('type=monthly&format=option&show_post_count=1'); ?> </select>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to use full-width-template (single column)?’ is closed to new replies.