Is it possible to create a custom paragraph style?

Posted in: Newspaper
Post count: 17

Hi!
I have a weekly listings page that requires the first line of text to be set in bold – you can see an example here.

At the moment I am manually styling the copy, but know that the ::first-line attribute can be applied to CSS to format automatically.

I can’t see how to create a stylesheet (say p2 or H7) to automatically create a ::first-line attribute. Mainly because I am not a coder! Any advice or suggestions welcomed.

Thanks
Phil

Post count: 20688

Hi,

If you would use that selector and apply styles through it, this will apply to all the first lines from all the paragraphs in the post content or on the page, since there is no way to distinguish between them. All the paragraphs inside the post content are the same – https://www.screencast.com/t/rAJAi4oRb7
Maybe you could try to search for a plugin that will give you additional post editing options, and will do this automatically for you.

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.