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(); ?>
Thread Starter
Y.Shen
(@synyan)
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.
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.
Thread Starter
Y.Shen
(@synyan)
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>