Hi guys
Is there anyway to pull the post excerpt into a header hero element using this method but without the <p> tag it’s wrapped in?
I’ve been adding non breaking spaces to the excerpt itself to help with word wrapping on smaller screens so can’t strip out the HTML altogether, but want to keep it in the H tag I have already setup and styled rather than it being a <p> tag in the header.
The only way I’ve been able to do this until now is using the plugin Shortcodes Ultimate and [su_post field=”post_excerpt”], but it is throwing up a PHP warning, and I would rather do it through a snippet if at all possible.
Thanks for your time
Greg