Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

OffCanvas Children Not working When Mobile Nav is set to right #394

Closed
joshkissel opened this issue Jul 28, 2015 · 0 comments
Closed

OffCanvas Children Not working When Mobile Nav is set to right #394

joshkissel opened this issue Jul 28, 2015 · 0 comments

Comments

@joshkissel
Copy link

I have a navigation that has Parent links and then Children anchor tags. The nav is working on desktop, and switching correctly to mobile. However, when I click the parent on mobile the nav does not respond.

I have tried switching it back to the left side of the page and the children then work as they are supposed too. Hopefully, I'm just missing some right selector.

So, in other words the Child Navigation is not sliding in when the Off Canvas Nav is being set to the right

header.php

<nav class="tab-bar">
    <section class="right-small">
        <a class="right-off-canvas-toggle menu-icon" href="#"><span></span></a>
    </section>

off-canvas-menu.php

<aside class="right-off-canvas-menu" aria-hidden="true">
<?php foundationpress_mobile_off_canvas(); ?>

top-bar.php

 <section class="top-bar-section">
        <?php foundationpress_top_bar_r(); ?>
        <?php foundationpress_top_bar_l(); ?>
    </section>

*Edit: I now realize I need to edit the Nav Ul class to right-submenu. Trying to figure out where that class gets added in the WP loop.

*Edit 2:
also switch from left-submenu to right-submenu within the offcanvas-walker.php

function start_lvl( &$output, $depth = 0, $args = array() ) {
    $output .= "\n<ul class=\"right-submenu\">\n<li class=\"back\"><a href=\"#\">". __( 'Back', 'foundationpress' ) ."</a></li>\n";
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant