• Laly York

    (@lalyry)


    Hello,

    I am using this theme (twenty twenty five) at a new blog I am developing. (Not the one mentioned here) I created a child theme. It all works fine. But I cannot find, in the parent’s theme folder, any line for the drop cap.

    I need to change its size, maybe also the font family.

    I believe it is not supported by this theme, but I don’t have a clue on how to work around this.

    Please help! Thank you!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi

    The theme does not style the drop cap. The style you are seeing is the WordPress default.
    The only way to style the drop cap is to add custom CSS. There is no other style setting for the drop cap, not in theme.json or anywhere else.
    The text element that has drop cap enabled has the css class has-drop-cap. Use that as the selector for your custom style.

    To adapt the size of the drop cap to my needs I wrote

    .has-drop-cap:not(:focus)::first-letter {
    font-size: 3.55em;
    }

    in my custom CSS.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to modify the Drop Cap’ is closed to new replies.