Title: &#8220;All&#8221; filter bug
Last modified: February 27, 2023

---

# “All” filter bug

 *  Resolved [polimers](https://wordpress.org/support/users/polimers/)
 * (@polimers)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/all-filter-bug/)
 * Hello,
 * Thank you for plugin.
 * Unfortunately, the “All” filter doesn’t work after you go to any letters.
 * Thank you in advance.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fall-filter-bug%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Chris Hadley](https://wordpress.org/support/users/chrishadley/)
 * (@chrishadley)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/all-filter-bug/#post-16514128)
 * Hi @polimers
 * Thanks for bringing this to our attention, looks like there’s an issue here which
   I’ve made a note of for the dev team to investigate which we hope to resolve 
   soon.
 * Thanks again for letting us know.
 * Regards,
 * Chris
 *  [juvavtdf](https://wordpress.org/support/users/juvavtdf/)
 * (@juvavtdf)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/all-filter-bug/#post-16859349)
 * Hello, I have the same problem.
   I don’t know if there’s anything new on this 
   subject but if there is I’d like to know how to fix it.
 * It seems that when I click on one of the letters, the filter works fine and sets
   everything to “display:none”, but the #all button, which is supposed to set everything
   to display:block, doesn’t work. I’ve tried to find a workaround in the form of
   a javascript code that I add directly to the page (or in my function.php file)
   but nothing conclusive came of it.
 * Thank you 🙂
    -  This reply was modified 2 years, 10 months ago by [juvavtdf](https://wordpress.org/support/users/juvavtdf/).
 *  [juvavtdf](https://wordpress.org/support/users/juvavtdf/)
 * (@juvavtdf)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/all-filter-bug/#post-16859394)
 * Re Hi [@polimers](https://wordpress.org/support/users/polimers/) , [@chrishadley](https://wordpress.org/support/users/chrishadley/)
   I just found a workaround that seems to work.
 * I’m using the DIVI Theme. So I simply added a “code” module on my glossary page
   in which I put this javascript code :
 *     ```wp-block-code
       <script>
         document.addEventListener("DOMContentLoaded", function(event) {
           var allLink = document.querySelector('a[data-name="all"]');
           var sections = document.querySelectorAll('.hg-letter-section');
   
           allLink.addEventListener('click', function(event) {
             event.preventDefault();
             sections.forEach(function(section) {
               section.style.display = 'block';
             });
           });
         });
       </script>
       ```
   

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

The topic ‘“All” filter bug’ is closed to new replies.

 * ![](https://ps.w.org/heroic-glossary/assets/icon.svg?rev=2232874)
 * [Heroic Glossary - Block for building Glossaries, Dictionaries and more](https://wordpress.org/plugins/heroic-glossary/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/heroic-glossary/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/heroic-glossary/)
 * [Active Topics](https://wordpress.org/support/plugin/heroic-glossary/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/heroic-glossary/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/heroic-glossary/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [juvavtdf](https://wordpress.org/support/users/juvavtdf/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/all-filter-bug/#post-16859394)
 * Status: resolved