Shortcodes Ultimate
Accordion accessible (4 posts)

  1. cordelatex
    Posted 2 years 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.


  2. Ayek
    Posted 1 year 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
    Posted 1 year ago #

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

  4. Ayek
    Posted 1 year 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

  • Shortcodes Ultimate
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic