Title: [dropcap]text[/dropcap] help
Last modified: August 22, 2016

---

# [dropcap]text[/dropcap] help

 *  Resolved [subtire](https://wordpress.org/support/users/subtire/)
 * (@subtire)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/dropcaptextdropcap-help/)
 * Hello,
 * Anytime when I use the [dropcap]text[/dropcap] function, the first letter is 
   cut out of the short description on my WP site. Is there any solution for this
   problem?
 * Thanks you!

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

 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/dropcaptextdropcap-help/#post-5592985)
 * Hi subtire. Could you post a link to your site so we can see the problem? Thanks.
 *  Thread Starter [subtire](https://wordpress.org/support/users/subtire/)
 * (@subtire)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/dropcaptextdropcap-help/#post-5592989)
 * Sure, sorry, I fotgot to to that in the first post: [http://travel210.com/](http://travel210.com/)
 *  [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/dropcaptextdropcap-help/#post-5593005)
 * Hey there subtire,
 * Have you tried using post excerpt? You can turn it on by checking Excerpt in 
   Screen Options [http://screencast.com/t/aJMZjZyiaQjg](http://screencast.com/t/aJMZjZyiaQjg).
   After that simply insert text in the Excerpt field, that text should be displayed
   on your post page for that specific post where you don’t use dropcap shortcode
   so your text can be displayed properly.
 * Hope this helps.
 * Best regards,
    Bojan
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/dropcaptextdropcap-help/#post-5593041)
 * Hi subtire. That is indeed strange. It appears that the shortcode isn’t being
   parsed correctly in the post summary; the summary is missing the span element
   that is created by the shortcode. I tried using the shortcode in an excerpt and
   the shortcode doesn’t appear to be recognized as such because it’s displayed 
   as part of the excerpt text. I’ll dig around and see if I can find a fix.
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/dropcaptextdropcap-help/#post-5593048)
 * It may be that it’s being parsed out of the the summary, which it should be, 
   but it’s taking the text with it. And it’s not just the dropcap shortcode; it
   happens with others as well. Still looking.
 *  Thread Starter [subtire](https://wordpress.org/support/users/subtire/)
 * (@subtire)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/dropcaptextdropcap-help/#post-5593051)
 * Hello Bojan,
 * Thank you for the reply, I will try that on my future posts but I really need
   a general solution because I have about 200+ posts, most of them begin with [
   dropcap][/dropcap] and I think that it’s a lot of manual work for me to go back
   and edit almost every post.
 * Hello again bdbrown,
 * Yes, it seems that most of the shortcodes [dropcap], [column] are not ok with
   the short description, they only work on the single.php page. 🙁
    If you begin
   your post with a [column], the text inside the column will not display at all
   in the short description… and, as we already know, neither the letters inside
   the [dropcap][/dropcap]
 * Thanks again!
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/dropcaptextdropcap-help/#post-5593053)
 * You shouldn’t have to create an excerpt just to work around the problem. That
   will quickly become a maintenance headache. I tested it in Twenty Fourteen and
   that theme does handle the shortcodes by interpreting them correctly, even within
   the post summary. So it appears to be something within Hueman.
 *  Thread Starter [subtire](https://wordpress.org/support/users/subtire/)
 * (@subtire)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/dropcaptextdropcap-help/#post-5593066)
 * Maybe Alexander Agnarson can do something about this.
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/dropcaptextdropcap-help/#post-5593070)
 * I did some more research. Hueman is actually using the default WP functionality
   for the excerpt which is, if there is a user-defined excerpt, return that unchanged,
   otherwise return a automatically generated trimmed-down version of the full post
   content which has all shortcodes and tags removed. So, that explains why the 
   shortcode shows up as part of the content in a user-defined excerpt, but gets
   stripped out of the excerprt that is automatically-generated from the post content.
   If you’re interested in the specifics, here is the [Codex reference](http://codex.wordpress.org/Function_Reference/the_excerpt)
   for “the_excerpt” function that Hueman uses.
 * The fix is to override the default functionality with a user function to strip
   the shortcodes but keep the content, which I found [here](https://wordpress.org/support/topic/stripping-shortcodes-keeping-the-content?replies=16):
 *     ```
       function custom_excerpt($text = '') {
       	$raw_excerpt = $text;
       	if ( '' == $text ) {
       		$text = get_the_content('');
                       // $text = strip_shortcodes( $text );
       		$text = do_shortcode( $text );
       		$text = apply_filters('the_content', $text);
       		$text = str_replace(']]>', ']]>', $text);
       		$excerpt_length = apply_filters('excerpt_length', 55);
       		$excerpt_more = apply_filters('excerpt_more', ' ' . '[...]');
       		$text = wp_trim_words( $text, $excerpt_length, $excerpt_more );
       	}
       	return apply_filters('wp_trim_excerpt', $text, $raw_excerpt);
       }
       remove_filter( 'get_the_excerpt', 'wp_trim_excerpt'  );
       add_filter( 'get_the_excerpt', 'custom_excerpt'  );
       ```
   
 * It worked on my test system. Let me know if it works for you.
 *  Thread Starter [subtire](https://wordpress.org/support/users/subtire/)
 * (@subtire)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/dropcaptextdropcap-help/#post-5593080)
 * Thank you very much bdbrown!
 * It works like a charm!
 * I added the function to functions.php and it works!
 * Thank you!

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

The topic ‘[dropcap]text[/dropcap] help’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hueman/3.7.27/screenshot.png)
 * Hueman
 * [Support Threads](https://wordpress.org/support/theme/hueman/)
 * [Active Topics](https://wordpress.org/support/theme/hueman/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hueman/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hueman/reviews/)

## Tags

 * [dropcap](https://wordpress.org/support/topic-tag/dropcap/)

 * 10 replies
 * 3 participants
 * Last reply from: [subtire](https://wordpress.org/support/users/subtire/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/dropcaptextdropcap-help/#post-5593080)
 * Status: resolved