Site logo

Archived topic

How to set padding to page title?

6 replies · Started by Gideon on March 13, 2017

Viewing posts 1–7 of 7

Hi,

As a result of getting rid of the site.content padding I now would like to add padding to the page titles only. Is there an easy way to do this? (without coding ;))

Regards,
Gideon

Hi Gideon,

I assume you want some left padding for the title? Unfortunately CSS is needed here but it's super easy:

.entry-header {
    padding-left: 10px;
}

Adding CSS: https://docs.generatepress.com/article/adding-css/

The easiest way would be copy and paste the code above into the Additional CSS field.

Let me know.

OK, that was quite easy indeed!

Thanks again!

Can I ask why it cannot be done through the customizer?
It seems quite basic functionality. Will it be added?
Off course I might be mistaking!

Regards,
Gideon

Hmm I would think most people would have some content padding so there is no need to add extra padding to the title.

Since you are using Elementor for the rest of the page, you could also consider disable default title using disable element and just add the title in using Elementor? then it should have the same container as the paragraph below.
https://docs.generatepress.com/article/disable-elements-overview/

I agree, however it looks like Elementor has some padding of its own (due to columns within sections?). Because of that it would be nice to be able to only add padding to the page title as it's not an Elementor element.

Just an idea... more and more people discover how awesome Elementor is! So I would think that the need for this will grow.

The idea you suggest to disable the default title might work as well although I would think the other option (to be able to set padding for the page title through the customizer would be "better" (easier for users to find).

I think most people who are using page builders will generally use it for the entire content part so it's almost easier to manage.

We just haven't had too many people asking for this but I'll ask Tom to consider for sure :)

Well I only ran into the issue of the content padding because I inserted the shape dividers of Elementor and that's a pretty new feature.

Thanks for asking Tom though! :) He already replied stating that it would probably be better to not remove the content padding (but instead only on those pages that require it). However, since I am using Elementor for all pages they already have some (a little but imo just enough) padding...

This archived topic is closed to new replies.