Support » Plugin: Simple Drop Cap » Showing drop caps in Excerpts

Viewing 6 replies - 1 through 6 (of 6 total)
  • same issue for me

    …but I think it depend by theme not by plugin

    Plugin Author Yudhistira Mauris

    (@maurisrx)

    Sorry for the late reply, I was busy at the time. What theme are you using? The dropcap shortcode is disabled on excerpt by default. I think the theme has something to do with it.

    Thanks,
    Mauris

    Thread Starter ernst A

    (@ernst-a)

    Hi Mauris, I have developed my own theme, could you explain how this is disabled, which v-code tot add to my them?

    Plugin Author Yudhistira Mauris

    (@maurisrx)

    I use add_filter to the the_excerpt hook like so:

    add_filter( 'the_excerpt', 'wpsdc_filter_excerpt' );
    
    function wpsdc_filter_excerpt( $content )
    {
    	$content = str_replace( '[dropcap]', '', $content );
    	$content = str_replace( '[/dropcap]', '', $content );
    	return $content;
    }

    Basically it removes the [dropcap] shortcode so it won’t be processed. I’ll try to add priority to add_filter function in the next patch to see if the problem still exists.

    Cheers,
    Mauris

    Plugin Author Yudhistira Mauris

    (@maurisrx)

    Mark as resolved.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Showing drop caps in Excerpts’ is closed to new replies.