WordPress.org

Forums

Shortcodes Ultimate
Accordion accessible (4 posts)

  1. cordelatex
    Member
    Posted 1 year ago #

    Hi Vladimir,
    first, thank you very much for developing this plugin. It is a fantastic help.
    I have a question: I'm developing an accessible site and what prevents me of using the accordion option is the lack of headings there (h2, h3...). Can I add them myself to their templates? Not sure which one should I use.
    Thanks!

    https://wordpress.org/plugins/shortcodes-ultimate/

  2. Ayek
    Member
    Posted 3 months ago #

    It seems, we need to hard-code ;)
    For example, to put H3 tags in accordions, modify shortcodes.php at line 91:
    return '<div class="su-spoiler su-spoiler-style-' . $atts['style'] . ' su-spoiler-icon-' . $atts['icon'] . su_ecssc( $atts ) . '"' . $atts['anchor'] . '><h3 class="su-spoiler-title"><span class="su-spoiler-icon"></span>' . su_scattr( $atts['title'] ) . '</h3><div class="su-spoiler-content su-clearfix" style="display:none">' . su_do_shortcode( $content, 's' ) . '</div></div>';

  3. jabcka
    Member
    Posted 2 months ago #

    @Ayek, So what will happen to the code when I'll update the plugin?

  4. Ayek
    Member
    Posted 1 month ago #

    Ordinary spoiler titles become H2 or H3 titles (with their spoiler functionality, of course). It does well on SEO, regarding to the semantic structure of a web document.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic