I simply want to create a Shortcode for a simple styled DIV-Wrapper.
At Sites in WordPress i want to add someting like this:
…a normal blockquote from wordpress…
The Output should be:
<div class=”block_header”>Headline text</div>
My function inside functions.php (in childtheme) has the following content:
* Function block_header_start
return (‘<div class=”block_header”>’);
* Function block_header_end
But the output looks like that:
<blockquote>…my content of blockquote…</blockquote>
Issue: The Words inside the new Wrapper doesn’t appears in Frontend!
Issue: The Wrapper includes the following blockquote, but the closing [/quotehead] is in front of the blockquote in Backend.?!
Is it possible to use only one Shortcode, and wrap the Content that follows, till the end of that line in one function..
Something like the leading # for headers in here or for Markdown files?
Or just the wrapping variant, that works?
Where is my failure?
Read more here:: Div-Wrap with Functions.php in Childtheme using Shortcode!