WordPress.org

Ready to get started?Download WordPress

Forums

Squelch Tabs and Accordions Shortcodes
[resolved] h3 gets stripped from accordion content (3 posts)

  1. trink79
    Member
    Posted 9 months ago #

    it seems that the accordion will not allow heading 3 tags in the content. it replaces them with divs.

    [accordion title="Number 1"]
    <h3>My Heading</h3>
    the rest of my content
    [/accordion]

    becomes

    <div>My Heading</div>
    the rest of my content

    all other heading level tags remain intact. why the removal of the h3? i don't want to start with h4 because then i would be skipping heading levels which is poor practice for accessibility.

    https://wordpress.org/plugins/squelch-tabs-and-accordions-shortcodes/

  2. Matt Lowe
    Member
    Plugin Author

    Posted 9 months ago #

    The plugin doesn't strip <h3> tags. Something else is going on.

  3. trink79
    Member
    Posted 9 months ago #

    Thanks you for the very speedy response. After doing some digging it turns out our theme developer put in a script to make the replacement.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.