Archived topic
Left Justify Page Headings
8 replies · Started by Kathy on June 2, 2021
Hi
I have imported the Avery theme.
I want to left-justify the h1 tag for all the pages (except for the home page)
I tried this:
h1 {
text-align: left !important;
}
but it left justifies the home page text on the graphic as well and that is not
what I want.
How do I resolve this issue please?
Thank you
Kat
Hi Kat,
Are you referring to these page titles?
https://www.screencast.com/t/ihxo3t6F
They are inserted using a block element, you can find them at appearance > elements > Global Page Headers.
You can change its alignment in the element.
https://www.screencast.com/t/wRmHNVEaK
Let me know if you need further assistance :)
Hi
Thank you, that worked if my page has only 1 column in width.
I added a right sidebar, and the page heading is not at left anymore

Can you link me to your site, please?
Hi
I can`t. My site is local to my computer.
I will just have to try and figure it out myself.
Can you check the container width of the block element? Is it set to the same value as your global container width set at customizer > layout > container?
Let me know if you need further assistance :)
Here is my issue (I think).
When I have a page with no right sidebar, the margins on the left and right are the way they are suppose to be.
(1200) according to customizer layout area. This is with no sidebars (default).
Once I select right sidebar from inside my page, save and preview, the margins revert to full width.
Can I have a home page that does not have a right sidebar, and the remainder of the site does?
This may be what my issue is.
Once I select right sidebar from inside my page, save and preview, the margins revert to full width.
That's weird, the container width should not change with or without sidebar. There must be other issue going on. But I'll have to inspect your site code to define it.
Can I have a home page that does not have a right sidebar, and the remainder of the site does?
This may be what my issue is.
Yes, the setting in customizer > layout > sidebar > applies to the global site, for static pages, you can activate sidebar in the page editor, for archive pages you can use a layout element:
https://docs.generatepress.com/article/layout-element-overview/