Support » Plugin: Standout CSS3 Buttons » Buttons in Excerpts

  • Resolved draganm


    I’m quite new to WordPress, so please excuse me if this is a simple question!

    I am experiencing problems when placing the CSS3 button on the excerpts. The buttons are showing perfectly well on the posts themselves but I’m having no luck with the excerpt.

    The code rather than the buttons is showing on the excerpts!

    Any help very gratefully received.

    Thanks for any advice you can give!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author jp2112


    Thanks so much for your help.

    but this is where I look really stupid…

    Where do I make the code change outlined in the thread? I am quite new to WordPress but have a basic understanding of coding – I just haven’t really worked out how WordPress deals with code and changes (if that makes sense).

    I’m guessing in the editor somewhere…

    Plugin Author jp2112


    You have to make sure shortcodes are being processed in excerpts. If your theme is using ‘get_the_excerpt’ function instead of ‘the_excerpt’, then you need to apply the filter to that function as well. Add this to your functions.php:

    add_filter('get_the_excerpt', 'do_shortcode');

    That should force your theme to process shortcodes in excerpts. If that doesn’t work, I would also apply it to the_excerpt as well:

    add_filter('the_excerpt', 'do_shortcode');

    And of course if you want to use shortcodes in widgets, you need this snippet:

    add_filter('widget_text', 'do_shortcode');

    Thank you very much for your help – it really is appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Buttons in Excerpts’ is closed to new replies.