[Resolved] Padding on page templates

Home Forums Support Padding on page templates

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #347623
    Paul

    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&nbsp;567890">01234&nbsp;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.

    GeneratePress 1.3.48
    #347634
    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.

    #347657
    Leo
    Staff
    Customer Support

    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.

    #347667
    Paul

    Yeah that works, thanks 🙂

    #347670
    Leo
    Staff
    Customer Support
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.