Title: Make plugin validate for accessibility
Last modified: August 22, 2016

---

# Make plugin validate for accessibility

 *  [ethical](https://wordpress.org/support/users/ethical/)
 * (@ethical)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/make-plugin-validate-for-accessibility/)
 * Hi Joe I am working with a theme that is geared towards web accessibility and
   using a web accessibility checker called achecker.ca/checker/ , this element 
   is flagged as an error with your plugin (which is awesome by the way!):
 * `<i class="fa fa-2x fa-arrow-up"></i>`
 * the suggested solution is to:
    Replace your i elements with em or strong.
 * think we could get that applied as it seems to be it could be a pretty quick 
   fix (at least to me but I am not a programmer)
 * thanks!
 * [https://wordpress.org/plugins/scroll-back-to-top/](https://wordpress.org/plugins/scroll-back-to-top/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [joesexton00](https://wordpress.org/support/users/joesexton00/)
 * (@joesexton00)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/make-plugin-validate-for-accessibility/#post-5729566)
 * Yes it is possible currently, though it will require adding some code to your
   theme’s functions.php file. There is a filter for the button markup that allows
   you to alter the markup however you need to. For example, to change the `<i>`
   to a `<em>` add the following to your theme’s functions.php file.
 *     ```
       add_filter( 'sbtt_button_markup', 'my_sbtt_filter' );
       function my_sbtt_filter($button_markup) {
   
       	$button_markup = str_replace('<i ', '<em ', $button_markup);
       	$button_markup = str_replace('</i>', '</em>', $button_markup);
   
       	return $button_markup;
       }
       ```
   
 *  Thread Starter [ethical](https://wordpress.org/support/users/ethical/)
 * (@ethical)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/make-plugin-validate-for-accessibility/#post-5729676)
 * thanks, that worked! something you may want to change though on your next update
   if its neither here nor there what is used?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Make plugin validate for accessibility’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/scroll-back-to-top_fefefe.svg)
 * [Scroll Back To Top](https://wordpress.org/plugins/scroll-back-to-top/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/scroll-back-to-top/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/scroll-back-to-top/)
 * [Active Topics](https://wordpress.org/support/plugin/scroll-back-to-top/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/scroll-back-to-top/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/scroll-back-to-top/reviews/)

## Tags

 * [accessible](https://wordpress.org/support/topic-tag/accessible/)
 * [web accessibility](https://wordpress.org/support/topic-tag/web-accessibility/)

 * 2 replies
 * 2 participants
 * Last reply from: [ethical](https://wordpress.org/support/users/ethical/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/make-plugin-validate-for-accessibility/#post-5729676)
 * Status: not resolved