Archived topic
Padding on page templates
4 replies · Started by Paul on July 11, 2017
Hi,
Can you tell me how I can remove the 40px padding applied to .one-container .site-content when using a page template?
Template is:
<?php
/**
* Template Name: Home
*
* @package GeneratePress
*/
// No direct access, please
if ( ! defined( 'ABSPATH' ) ) exit;
get_header(); ?>
<div class="smb-home-page-intro">
<div class="inside-smb-home-page-into grid-container grid-parent">
<div class="grid-100 grid-parent">
<div class="grid-70 mobile-grid-100">
<h1><?php the_field('home_page_intro_headline'); ?></h1>
<p><?php the_field('home_page_intro_summary'); ?></p>
<div class="smb-home-page-intro-phone-number">
Call today to discuss your service requirements<br><a href="tel:01234 567890">01234 567890</a>
</div>
</div>
</div>
</div>
</div>
<?php
get_footer();
Site is:
https://style960.com/smb
I know I can adjust padding values in the customizer but this is across all pages, including those not using a template.
Thanks,
Paul.
Fixed this with
.page-id-21 .site-content {
padding: 0px !important;
}
If there's a more appropriate method please let me know, otherwise this can be marked resolved.
Thanks,
Paul.
Hi there,
You should be able to use the Full Width in Page Builder Container: https://docs.generatepress.com/article/page-builder-container/
Let me know.
Yeah that works, thanks :)
No problem!