Skip to content

Instantly share code, notes, and snippets.

@sunshinephotocart
Last active August 21, 2023 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunshinephotocart/ce0e32b863f61e655c85c2a1f968a7f5 to your computer and use it in GitHub Desktop.
Save sunshinephotocart/ce0e32b863f61e655c85c2a1f968a7f5 to your computer and use it in GitHub Desktop.
Remove Register and Login from Sunshine Photo Cart 3 Main Menu
// 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