Enable element in wp_kses_post
-
Can WP.com change the default wp_kses() allowed html to enable use of
<style>elements in post/page content.I am using WP.com to teach kids to maintain a blog but also to teach them a little HTML/CSS. I would like to be able for them to apply simple CSS styling to their post to apply the lessons they learn in a real online environment.
currently style attributes work within a given element using the classical editor. However, a
<style>elements are stripped out when the post is saved.The blog I need help with is: (visible only to logged in users)
-
Hi there, the reason the inline styles are being stripped out is because in order to add CSS to a WPcom site’s theme, it would require upgrading the site to the Premium plan or higher. https://wordpress.com/support/custom-design/custom-css/
If you want to share CSS code, you can do that by adding it with the SyntaxHighlighter https://wordpress.com/support/wordpress-editor/blocks/syntax-highlighter-code-block/
Let us know here if you have any other question or need more help.
- The topic ‘Enable element in wp_kses_post’ is closed to new replies.