template_page-builder.php (content was narrow and then stretched.)
-
When the page was loaded, the content was narrow and then stretched.
I solved the problem this way:
page-templates/template_page-builder.php:<?php /* Template Name: Page Builder */ get_header(); ?> <style> @media (min-width: 1200px) { .site-content .container { width: 1170px; margin-right: auto; margin-left: auto; width: 100%; } } </style> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php endwhile; ?> </main><!-- #main --> </div><!-- #primary --> <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘template_page-builder.php (content was narrow and then stretched.)’ is closed to new replies.