How do i remove this from logged in users?

As per my understanding, you need to remove that WordPress logo and dropdown under it from your WordPress backend. For that, you can add this code in your theme’s functions.php function load_custom_wp_admin_style(){ wp_register_style( ‘custom_wp_admin_css’, get_bloginfo(‘stylesheet_directory’) . ‘/admin-style.css’, false, ‘1.0.1’ ); wp_enqueue_style( ‘custom_wp_admin_css’ ); } add_action(‘admin_enqueue_scripts’, ‘load_custom_wp_admin_style’); Also create a CSS file on the root of … Read more

Swap home page based on user role, Elementor layout breaking

I do believe I’ve got it. Here’s the code: // Display different home page for dealer vs consumer if( is_user_logged_in() ) { $current_user = wp_get_current_user(); $user = new WP_User($current_user -> ID); if (in_array(‘Wholesale’, $user->roles)){ $page = get_post(2885); update_option( ‘page_on_front’, $page->ID ); update_option( ‘show_on_front’, ‘page’ ); } else { $page = get_post(2847); update_option( ‘page_on_front’, $page->ID ); … Read more