Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1412777
    davidferp
    Participant

    Hello X-Team!,

    I am looking at a way to apply the dropcap shortcode by default to the first letter of every post of our blog, and to apply a custom class to it in the process. Can that be done at PHP level? I am using the Renew Stack

    Thank you guys for sharing your wisdom with us!

    #1412872
    Thai
    Moderator

    Hi There,

    Please add the following CSS under Customizer > Custom > Global CSS:

    .single-post div.entry-content p:first-child:first-letter { float:left; font-size:4em; color: #000099; margin-right:0.10em; line-height:90%; text-shadow: 0.05em 0.05em #C0C0C0; }

    Hope it helps 🙂

    #1413285
    davidferp
    Participant

    Ok that worked like a charm and it’s a much easier solution than I was expecting

    Thank you!

    #1413523
    Thai
    Moderator

    Glad it worked 🙂

    If you need anything else please let us know.

  • <script> jQuery(function($){ $("#no-reply-1412777 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>