Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Created March 5, 2018 23:10
Show Gist options
  • Select an option

  • Save KaineLabs/d25503953481b280079f60ff93b64f62 to your computer and use it in GitHub Desktop.

Select an option

Save KaineLabs/d25503953481b280079f60ff93b64f62 to your computer and use it in GitHub Desktop.
Add toggle menu title
/**
* Add Toggle Menu Title
*/
function yz_add_text_to_profile_toggle_menu() {
return '<div class="yz-open-nav"><button class="yz-responsive-menu"><span>toggle menu</span></button><span class="yz-toggle-menu-title">Profile Menu</span></div>';
}
add_filter( 'yz_profile_navbar_toggle_menu', 'yz_add_text_to_profile_toggle_menu' );
// CSS.
.yz-toggle-menu-title {
display:none;
font-size: 13px;
font-weight: 600;
color: #666565;
position: absolute;
left: 67px;
top: 24px;
}
@media screen and (max-width: 375px) {
.yz-toggle-menu-title {
left: 50px;
}
}
@media screen and (max-width: 768px) {
.yz-toggle-menu-title {
display: block;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment