-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from INN/13-site-header-and-main-menu
Site header and main menu
- Loading branch information
Showing
12 changed files
with
901 additions
and
3 deletions.
There are no files selected for viewing
Submodule largo
updated
from da020f to c41d85
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# SFPP child theme | ||
|
||
Navigation modifications: | ||
|
||
- [x] disable global nav via the constant `SHOW_GLOBAL_NAV` | ||
- [x] new main nav partial | ||
- [x] dequeue Largo nav js | ||
- [x] dequeue Largo sticky nav partial | ||
- [ ] custom nav js borrowing from Largo that collapses the overflow behind a "Menu" button that reveals all | ||
- [x] stickyNavEl | ||
- [x] stickyNavWrapper | ||
- NOPE not gonna put the close button in .nav-right | ||
- [ ] Remove show/hide logic while scrolling | ||
- isMobile is predicated on the visibiliy of the button | ||
- [ ] remove caretwidth | ||
- [ ] remove rightwidth | ||
- [ ] remove creation of overflow menu item | ||
- [ ] add class "overflowed" to parent | ||
- [ ] add class "overflow" to menu item | ||
- [ ] .overflowed .overflow { display: none } | ||
- [ ] .overflowed.open .overflow { display: block } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/** | ||
* Functions related to modifications of the navigation | ||
* | ||
* @since Largo 0.6.4 Last Largo version where this was tested and checked | ||
* @see partials/nav-* | ||
*/ | ||
/** | ||
* Dequeue Largo's various nav-related functions | ||
*/ | ||
function sfpublicpress_nav_enqueues() { | ||
wp_dequeue_script( 'largo-navigation' ); | ||
wp_register_script( | ||
'sfpublicpress-navigation', | ||
get_stylesheet_directory_uri() . '/js/navigation.js', | ||
array( 'jquery' ), | ||
filemtime( get_stylesheet_directory() . '/js/navigation.js' ), | ||
); | ||
wp_enqueue_script( 'sfpublicpress-navigation' ); | ||
} | ||
add_action( 'wp_enqueue_scripts', 'sfpublicpress_nav_enqueues', 20 ); // largo is at 10 |
Oops, something went wrong.