see below and look at the reference link to a page where you’ll see it’s not converting – it’s located at the end of the content on the page link.
[box]And that’s my story and I’m sticking to it![/box]
MY QUESTION: Is there a way to get this to work again so I have box section that appear on the viewed pages? Do I have to go and remove all these bits of text shown as [box] on all the individual pages? Is there a plugin that will re-translate and convert the [box] to a boxed section on the viewed page. I hope this makes sense.
thanks in advance!
]]>I imagine it’s something like
<div class="box">Your text here</div>
and then a bunch of CSS to style it.
add_shortcode( 'box', 'ccarlow_box');
function ccarlow_box( $atts, $content) {
return '<div class="box">' . $content . '</div>';
}
Pop that in your functions.php
The CSS would be something like
.box {
border-style: solid;
border-color: black;
border-width: 1px;
padding: 1em;
}
]]>
What can I do to restore the box appearance without having to go to each page and edit the code individually? Anything?
It’s a lot of work and I guess I’m looking for some quick fix.
]]>[box]/[/box]
shortcodes from your content. Those are the two choices.
The PHP code would go in your theme’s functions.php file; you’d add the css via the customizer’s Additional CSS tab.
]]>