bbeer

UIKit Template offcanvas nav parent pages not selectable

Recommended Posts

Hi  

I am using Ryan's UiKIt template in one of my Sites. I use Offcanvas nav bar as mobile navigation. Somehow I don't really manage, that parent links are working. When clicked they just open the tree of children, but the link is not active for navigation.

Has anyone an idea of how this could be solved?

Your help is much appreciated.

Share this post


Link to post
Share on other sites

Hi, would you mind share your offcanvas navigation code? :) Maybe I can help.

  • Like 1

Share this post


Link to post
Share on other sites

Hi 3fingers

I think I best give you the link to the page. 

Here http://trueart.ch/dev/

Thanks a lot in advance!

My code looks like 

<div id="offcanvas-nav" uk-offcanvas>
        <div class="uk-offcanvas-bar">
            <?=ukNav($home->children, [
            
            'divider' => true, 
            'depth' => 2 
                
            ])?>
        </div>	
    </div>

 

Share this post


Link to post
Share on other sites

Hi bber, I've attached a screenshot of a page, I see the "uk-active" class correctly applied to the <li> active element.

There is no css reference though, so the class does nothing...am I wrong or missing something?

 

uk_active.PNG

  • Like 1

Share this post


Link to post
Share on other sites

you're right! Tried to remove the cover over the link and make it smaller, so that one could click the Icon as well as the link. Somehow that did not work.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.