Support » Plugin: Shortcodes Ultimate » Accordion accessible

  • 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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>';

    @ayek, So what will happen to the code when I’ll update the plugin?

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Accordion accessible’ is closed to new replies.