• Resolved polimers

    (@polimers)


    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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Chris Hadley

    (@chrishadley)

    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

    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 1 year, 5 months ago by juvavtdf.

    Re Hi @polimers , @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 :

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