I'm trying to put your page index on a custom page. It works except that once the ellipses hover function brings up the hover activated page selection it never goes away.
What trick am I missing?
echo '
<ul class="pagelinks floatleft sf-js-enabled" role="menubar">',
$context['page_index'],
'</ul>';
Some script I have to include? I've got the standard html and body templates loading so the default set of scripts and variables are there.
Help please.
sf-js-enabled is a class that is applied via jQuery Superfish plug-in. It shouldn't actually be in your markup.
Dunno if that's causing a problem, but I'd lose it from the markup anyway.
Yes that fixed it. Thank you.
I do wonder why the script doesn't work since I've loaded all the elk scripts. Doesn't really matter though I guess.
It may be that jQuery (or superfish) remembers the classes that were applied before doing its job and probably it doesn't remove that one or it gets confused by finding a class that should not be there... dunno, difficult to say...
I copied the page link markup from another page. That's why it's odd it doesn't work. It's not even a new class. But no big deal.
Yep, but the class is (normally) added via javascript by superfish itself and is not actually present in the template, see:
https://github.com/elkarte/Elkarte/blob/6706f00da7f9eb76305a6bc291c4ddd7e59457e7/themes/default/index.template.php#L741
The "exact line" is 748.
Oh, it's added by the javascript not a message for the javascript to do something with it. Now I understand. Thanks.
It all works. I just wondered why adding the class broke it. But emanuele explained that to me. So it was user error on my part.