Hello, Is it possible to remove the shopping cart icon in the top right corner of the site when logged in only?
Please let me know. Thanks,
Website: https://relentlessmentors.com/
Dera user use this css go to appearance>>customization>>custom css
ul.topmenu {
display:none !important;
}
This removed the shopping cart icon for non logged in users too. I only want to remove this icon when users are logged in. Can you please advise?
Go to wp-admin->plugins->editor->wplms customiser
open wplms-customiser.php
add these lines and save.
add_action('wp_head','remove_cart_icon_after_login');
function remove_cart_icon_after_login(){
if(is_user_logged_in()){
echo"<style>ul.topmenu { display:none !important; }</style>"; } }
and remove previously give css fromm custom css
THat code you gave me broke the whole header. Please advise. I attached an image here: https://screencast-o-matic.com/screenshots/u/naMZ/1585665095794-5549.png
Actually That's a blunder. Our team member @jackson advised you to add the code in wp-admin > Plugins > editor > select wplms customizer plugin > wplms-customizer.php
and here you have to add the code. The Custom CSS window is for CSS code only not for PHP code
We can do this simply with the help of custom CSS as well. Ignore the above shared code and add this custom CSS in wp-admin > Appearance > Customize > Custom CSS
.logged-in span.fa.fa-shopping-basket {display:none !important;}
this will remove the shopping basket for logged in users
Okay, Closing this topic then