Last active
August 21, 2023 23:09
-
-
Save sunshinephotocart/ce0e32b863f61e655c85c2a1f968a7f5 to your computer and use it in GitHub Desktop.
Remove Register and Login from Sunshine Photo Cart 3 Main Menu
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
// Add this to your theme's functions.php file or use a plugin like Code Snippets | |
add_filter( 'sunshine_main_menu', 'custom_sunshine_main_menu', 999 ); | |
function custom_sunshine_main_menu( $menu ) { | |
unset( $menu[100] ); | |
unset( $menu[110] ); | |
return $menu; | |
} | |
// OR, alternatively add this to Sunshine > Settings > Design > Custom CSS | |
li.sunshine--login, li.sunshine--register { display: none; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment