Sparkling full width template

I want to create a full width template (a really full width template (no margins and paddings))

Steps i already did:

  1. creat a new php file
<?php 
/* 
* Template Name: Full width (customised)
*/ 
get_header();
?>
<?php the_content(); ?>
<?php get_footer(); ?>

The problem is that this template is not really full width (has some margins). How do i have to adjust the file that i only geht the Header, Footer and the html code i’m writing down in wordpress? Nothing else?

Thanks in advance!

Hi @maik276,

I hope you are well today and thank you for your question.

We can remove its margins developing custom CSS code.

Could you please share me your site URL where it’s displaying so that i can help you to achieve it?

Best Regards,
Movin

On the homepage of this side i’m using the sparkling full width template with no sidebar. Is it possible to remove all the margins and padding only for the full width template but not for the standard template? That would be awesome! Thx!

Hello there,

I hope you are doing well today.

You can use the following CSS code to remove the padding by going to Appearance > Customize > Additional CSS and pasting it there.


/Remove padding*/
@media (min-width: 1200px)
.container {
    width: 100%;
}
@media (min-width: 992px)
.container {
    width: 100%;
}
@media (min-width: 768px)
.container {
    width: 100%;
}
.container {
    padding-right: 0px;
    padding-left: 0px;
}

The CSS would affect all the templates.

Best Regards,
Support