Site logo

Archived topic

is there a way to make articles same structure?

5 replies · Started by eran on December 15, 2022

Viewing posts 1–6 of 6

Hi,

When I add pages, I have the headlines in regular font-weight, but sometimes I leave a headline with bold font weight by mistake.
Is there a way to give all the headlines in the article the same font weight? So it won't matter what I choose in the editor (bold or regular)

Hi there,

you could force them with some CSS eg.


.entry-content h2 {
    font-weight: 500 !important;
}

There's no option in the generatepress theme for this?

Hi Eran,

You can also add a new Typography rule in Appearance > Customize > Typography. Set the Target Element to Custom - .entry-content h2 strong

Example: https://share.getcloudapp.com/z8ulYjN8

This targets Bold H2 texts in your content.

But when I use the bold option in the editor, will it override it?
And I need to create it for every headline right? H1 H2 H3 etc?

But when I use the bold option in the editor, will it override it?
And I need to create it for every headline right? H1 H2 H3 etc?

Yes and Yes.

But please note, in doing this means that the Editor Bold option for Headings is effectively now defunct. So if you want to use the bold ( strong ) style its going to get overwritten by those new styles.

This archived topic is closed to new replies.