I want to create a full width template (a really full width template (no margins and paddings))
Steps i already did:
- creat a new php file
* Template Name: Full width (customised)
<?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!
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?
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!
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.
@media (min-width: 1200px)
@media (min-width: 992px)
@media (min-width: 768px)
The CSS would affect all the templates.