Catch Kathmandu theme Full Width

To make a truly full width page in Catch Kathmandu, I had to make a custom page template. This is very easy to do if you have cpanel or ftp access to your hosting account. All you do do is make a file in this case we will call it “fullwidth.php” then paste in the text below. Once you do this upload this to your site/wp-content/themes/catch-kathmandu. Once you do that just choose it as a page template. If you have questions let me know. See example here


<?php
/**
Template Name: Ryan is Awesome
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package Catch Themes
* @subpackage Catch Kathmandu
* @since Catch Kathmandu 1.0
*/

get_header(); ?>

<div id="primary2" class="content-area">
<div id="content" class="site-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 .site-content -->
</div><!-- #primary .content-area -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>

Advertisements