How to allow html markup in featured posts text
-
Is there a way to keep markup ( <h3> etc )in the text for featured posts?
I can enter markup in the customize sidebar (home page > featured text one) and the live preview displays the result I want (it happens to be a bulleted list but the principle is the same). However when I save and preview the page, the markup has gone – the text is simply wrapped in a <p> </p>.
If I leave the text blank the sidebar should pick up the excerpt from the relevant post – that excerpt has been populated with code that is marked up. However, the final result is the same – no formatting.
Looking at the database, the field ‘tc_theme_options’ in table wp-options has the code sanitized to > or <, so the problem must lie in when the options are saved.
Looking at customizr/inc/admin/class-admin-customize.php, line 224 seems to apply function tc_sanitize_textarea to the options. I’m guessing that this is what nobbles the formatting.
Sadly this is where my coding skills end – is anyone able to help me remove the sanitize instruction from the text area, or tell me why this could never work?
Apart from that, an absolutely brilliant theme! ??
Many thanks.
Ed
- The topic ‘How to allow html markup in featured posts text’ is closed to new replies.