We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19114
    • 0 Posts
    Hi,

    This is the site i’m working on: http://bornicon.app1.netikka.net/index.php?id=15

    One of the main links (TUOTTEET) has no longer background image (active) after browsing a while. When I clear the browser cache it works a while and get’s back to the same.

    Is there something I’m missing?

    Thanks.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Are you sure that the javascript isn’t setting a conflicting "active" classname somewhere? Sounds like a Javascript issue in your browser rather than anything to do with Wayfinder. I couldn’t get it to reproduce the problem but it was slowing my little iBook down with the Javascript.

      Hmm. Looking at the javascript code snippet, I see that it has code to set active:false. Try using a parameter in Wayfinder to set the active item to a different classname, like ’current’ or something.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 19114
        • 0 Posts
        Thanks. smiley

        My CSS looks like this:

        a:link.tuotteet, a:visited.tuotteet {background-position: -81px -80px; width: 90px; }
        a:hover.tuotteet, a:active.tuotteet {background-position: -81px -40px; }
        .active a:link.tuotteet, .active a:active.tuotteet {background-position: -81px 0px;}

        And I’m using menuRow template that makes active class for the links

        <li [+wf.classes+]>...

        I also tried to change class with: &hereClass=`current` and made the changes in CSS, but it didn’t help.
          • 19114
          • 0 Posts
          Anyone?

          Do you think this is a caching problem? I saw the issue on this forum about Wayfinder cache and the solution was clearing the cache in Wayfinder core? How would I do that in Evolution?