Full Width Template (should be an easy fix)
-
Hi guys,
I have one particular page on my website which needs full width. I have created me own template(see below). The sidebar does not show up, which is good. However the content doesn’t use the full width. What do I need to change below to make that happen (as if sidebars were turned off in the Customizer).
PS; changing it in customizer as its only this one page which needs full width.
Kind regards,
Jasper<?php /* Template Name: Full Width */ /** * @package Make */ get_header(); global $post; ?> <main id="site-main" class="site-main" role="main"> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <?php /** * Allow for changing the template partial. * * @since 1.2.3. * * @param string $type The default template type to use. * @param WP_Post $post The post object for the current post. */ $template_type = apply_filters( 'make_template_content_page', 'page', $post ); get_template_part( 'partials/content', $template_type ); ?> <?php get_template_part( 'partials/content', 'comments' ); ?> <?php endwhile; ?> <?php endif; ?> </main> <?php get_footer(); ?>
[moderator note: bumps moderated – a live link to the problem page says more than many bumps…]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Full Width Template (should be an easy fix)’ is closed to new replies.