• Resolved caroline

    (@makeupedia)


    Hi ??

    I want to remove figcaption from my excerpts. I tried different “strip tags” codes but doesn’t work:
    <?php the_excerpt('strip_tags'); ?>

    If I uncheck the box for figcaption in the plugins settings, it will still appear but as a regular text as the other text.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPKube

    (@wpkube)

    Hi @makeupedia

    The plugin will strip the HTML tag itself but not remove the content inside. For example bold text will turn into regular non-bold text.

    You could just hide the figcaption with CSS. The actual selectors for that element vary from theme to theme, so can you please send the URL to the website and I’ll check it and send over the CSS code you need.

    Thread Starter caroline

    (@makeupedia)

    Hi and thank you @wpkube

    Yes of course…*facepalm* I think I managed to hide all figcaption in the entry-content before, but this worked:
    .content-excerpt figcaption {display:none;}

    Plugin Author WPKube

    (@wpkube)

    You’re welcome @makeupedia

    Happy to hear it’s sorted out ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Strip tags from excerpt’ is closed to new replies.