Aleksandr Novik
Forum Replies Created
Viewing 1 replies (of 1 total)
-
I’ve solved this problem by this way:
1. Create a new page template and name it MY_PAGE_TEMPLATE (you can use any custom name)
To do it you need add page_MY_PAGE_TEMPLATE.php file in the page_templates directory of your theme. You can just copied all code from some existing page template in your file, but you must rename the header of your file. For example see my page template file:<?php /* Template Name: MY_PAGE_TEMPLATE */ get_header(); ?> <div id="content"> <div style="width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important;"> <div class="row"> <div class="entry-content"> <?php while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php endwhile; ?> </div><!-- .entry-content --> </div> </div> </div> <?php get_footer(); ?>
It’s important to name your page template file as page_MY_PAGE_TEMPLATE.php
2. You need add in style.css file of your theme the following code:
.page-template-page_MY_PAGE_TEMPLATE .content-wrapper { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; padding: 30px 15px !important; }
Don’t forget save changes
3. Next select MY_PAGE_TEMPLATE in the page you wanna make full width directly in the page setting menu in WP page editor
4. Just update cashe in your web and it has to solve
- This reply was modified 2 years, 11 months ago by Aleksandr Novik.
Viewing 1 replies (of 1 total)