Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1302037

    P Hammond
    Participant

    Hi Xers! I need some help. I have implemented FacetWP to create faceted search on a site. In order to make this work, I have added a class to the index php; however, there is some problem related to the isotope container which I cannot figure out how to fix.
    This is what I have been told:
    “If you look closely at the DOM, the results do load after selecting a facet, but they’re being hidden by CSS opacity: 0.
    When a refresh happens, FacetWP destroys everything within “facetwp-template” and re-builds it. Any event handlers attached to those prior elements (e.g. isotope) are also destroyed… so in this case we’ll need to re-trigger isotope/masonry.
    At this point, could you reach out to the X authors to see how to re-trigger isotope in their theme? It should only require minor modifications to the above code.”

    While I understand this is 3rd party, I have already gone to a dev who is more skilled than I and he can’t fix it either. Any assistance you could provide would be greatly appreciated.
    Happy holidays!
    to see what’s happening: http://mitb.flywheelsites.com/?cat=6&fwp_categories=wine

    #1302386

    Lely
    Moderator

    Hello There,

    Thanks for posting in.
    Unfortunately, I am not sure exactly where the issue is when I check the page. And since this is a third party code, we cannot dig in further. Although I can point you to the code responsible for the isotope. You can find it in _script-isotope-index.php file on this folder:\wp-content\themes\x\framework\views\global.

    Hope this helps.