Drop Cap Style

Posted in: Newspaper
Post count: 148

Can you tell us how I can default the drop cap style of only the first character of the first block text to BOLD in CSS?
See for an example https://cloudzeeland.nl/de-onzichtbare-westerse-bril-van-ai/

  • This topic was modified 3 months by DocDigit.
Post count: 35449

Hi,
Could you please clarify the question? Do you want to use more drop caps on an article, and you want to use the same drop cap, but apply it only to the first drop cap?

Post count: 148

Hi Calin,
Let me explain:
We can change the dropcap style for every block of text. It would be great if it would be possible to set the drop cap in the first block of the article to BOLD in .css
Thank you!

Post count: 35449

I see, in this situation, you could use a css like this one:
.tdb_single_content p:first-child.dropcapp3:first-letter{
font-weight: 900;
}

Just add any css you need for the first Drop Cap, the css will apply only on the drop cap that is on the first paragraph inside the post

Post count: 148

I understand what you mean, thanks.
I added a css rule in the template .css of Newspaper or in .css rule of WordPress.
Unfortunately that didn’t work. Will search further.

  • This reply was modified 3 months by DocDigit.
Post count: 35449

Hi,
You can try to set the cs sin a different place, for example, in the theme panel > custom code> custom css. Also, the above example will work if you are using a cloud template for an article; if it is a standard template, it will not work.
Thank you!

Post count: 148

Didn’t know that. What is a cloud template, missed that one?
I am currently using the Newspaper Single Post Content template for blog layout.
Thanks, DD

Post count: 35449

Hi,
Cloud templates are the templates that you get from the tagDiv Cloud Library, and you can edit them with tagDiv Composer.
https://forum.tagdiv.com/how-use-tagdiv-cloud-library-templates/
https://forum.tagdiv.com/cloud-library-templates/

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