Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Last active February 25, 2019 05:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaineLabs/d155a2460be3122858cd2df77edeaac1 to your computer and use it in GitHub Desktop.
Save KaineLabs/d155a2460be3122858cd2df77edeaac1 to your computer and use it in GitHub Desktop.
Add Navbar Above Header
<?php
/**
* Add Navbar Above Header.
* Add this css to your site : #yz-profile-header { position: relative; } #yz-profile-navmenu { z-index: 9999; }
*/
add_action( 'youzer_profile_before_header','yzc_add_navbar_above_header');
function yzc_add_navbar_above_header() {
if ( ! bp_is_user() ) {
return;
}
youzer()->profile->navbar();
add_filter( 'yz_display_profile_navbar', 'yzc_disable_default_navbar' );
}
// Disable Navbar.
function yzc_disable_default_navbar() {
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment