Removing llogin and register links
-
I’ve removed the login and register links by adding the information below, but I still get 2 error messages when an order is placed: Valid email is require and Password is required.
This prevents someone from ordering. How do I keep these error messages from appearing? It would like to have customers provide an email address but not have to register or login or use a password.
I’ve added this:
// 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;
}
and this
// OR, alternatively add this to Sunshine > Settings > Design > Custom CSS
li.sunshine-login, li.sunshine-register { display: none; }
but links still thereAlso, I’ve added to CSS:
This required putting a little more specific CSS for this theme:
#sunshine .sunshine-main-menu li.sunshine-login, #sunshine .sunshine-main-menu li.sunshine-register { display: none !important; }
- The topic ‘Removing llogin and register links’ is closed to new replies.