Archived topic
Why the title don't respect the container margin?
6 replies · Started by Alejandro on December 27, 2020
Hello team,
Why the title don't respect the container margin?
you can see this at the top of this page:
https://xn--lavavajillaspequeos-c4b.com/
title is: "Los mejores Lavavajillas Pequeños del mercado"
ant it's placed more left that the rest of content.
How can solve it?
Thanks
Hi there,
you page content is built with a page builder which has its own padding.
If you want to add the extra padding to the Entry Title you can either:
1. Disable the Content Title in the WP Editor and add that the H1 title to your Pagebuilder content:
https://docs.generatepress.com/article/disable-elements-overview/
OR
2. Add some padding to the themes entry header with some CSS:
.page .entry-header {
padding-left: 20px;
padding-right: 20px;
}
Hi again,
I trying it create a hook "generate_inside_site_container" but don't work
https://xn--lavavajillaspequeos-c4b.com/
What doing I wrong?
Hi there,
Just to make sure you are trying to add some paddings to the page title?
If so, try to add David's css:
https://generatepress.com/forums/topic/why-the-title-dont-respect-the-container-margin/#post-1595488
Regarding the hook you added, that's not the way how css is being added.
How to add css: https://docs.generatepress.com/article/adding-css/
Hi again
I used adittional CSS and now work.
Many thanks,
resolved
Glad it worked :)