• This topic has 4 replies, 2 voices, and was last updated 11 years by borghal.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Supreme
  • #550
    borghal
    Member
    Post count: 7

    Hi,

    I tried to use the drop caps shortcode in the first paragraph of a post, and it looks gorgeous. However, when I look at the (automatically generated) excerpt of the post (for instance, in the slider in the front page) the letter in drop caps is missing. I was expecting the shortcode to fallback to just the letter with no drop caps in the excerpt (and in the RSS as well), but apparently it’s just not displaying anything instead.

    What is the right way of using this shortcode?

    Thanks.

    #570
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi there,

    The shortcode won’t work in the excerpt as standard, and it will depend if you’re using the dropcap just in the standard post editor, not the page builder. If you’re using the standard post editor, then add this to the functions.php file:

    add_filter('the_excerpt', 'do_shortcode');

    Hope that helps 🙂

    – Ed

    #575
    borghal
    Member
    Post count: 7

    Thanks for your quick answer, I’ll try that!

    #595
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Let us know!

    – Ed

    #794
    borghal
    Member
    Post count: 7

    Yeah, it didn’t work, but it doesn’t matter. Thanks anyway! Love the theme!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register