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

"Active" class no longer being applied to Topbar link on active page #933

Closed
joshtipton28 opened this issue Jan 10, 2017 · 2 comments
Closed
Labels

Comments

@joshtipton28
Copy link

How can this bug be reproduced?

  1. Step one: Create a new site using Foundationpress
  2. Step two: Create a few pages and add them to a menu in the topbar
  3. Step three: Inspect nav links to see if an "active" class is being applied

What did you expect to happen?
A class of "active" to be added to the nav link corresponding to the current page.

What happened instead?
The class is not there. The CSS styling is still in navigation.scss though.

Please List the Following:

  • OS & version: Windows 10
  • Node version (node -v) [Node v4+ is required] : 6.9.2
  • Foundation version (bower list) : 6.3.0

Include Test Case (if applicable):
Give us a link to a CodePen or JSFiddle that recreates the issue.

@olefredrik olefredrik added the bug label Aug 6, 2017
@linuxbastard
Copy link
Contributor

Here are the classes on a page link that come up when that page menu item is clicked:

menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-<page-id> current_page_item

We have a function in foundation.php, starting at line 80, that is supposed to add the active class, but it seems to not be functioning. Looking into this, but please have some more patience. It's Monday where I am and I've got an hour before duty calls. 😢

@olefredrik
Copy link
Owner

Fixed #1032

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants