• 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)
  • Thread Starter Vad

    (@vadym1)

    page-templates/template_page-builder.php:

    
    <?php
    /*
    Template Name: Page Builder
    */
    
    get_header(); ?>
    
    	<div id="primary" class="content-area">
        <div class="style-template-page-builder-1">
        <style>
        @media (min-width: 200px) {
        .elementor-page .site-content .container {
               margin-right: auto;
               margin-left: auto;
               padding-left: 0px;
               padding-right: 0px;
               width: 100%;
        }
        }
        </style>
        </div>
    		<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(); ?>
    
    

    This for plugin Elementor.
    There was a horizontal scrollbar and right padding.

    • This reply was modified 7 years, 1 month ago by Vad.
Viewing 1 replies (of 1 total)
  • The topic ‘template_page-builder.php (content was narrow and then stretched.)’ is closed to new replies.