Remove shopping cart icon when logged in

Home Forums Legacy Support Support queries How-to & Troubleshooting Remove shopping cart icon when logged in

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #247893
    anabolictechnology
    Participant
    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/
    #247970
    Steve
    Member
    Dera user use this css go to appearance>>customization>>custom css ul.topmenu { display:none !important; }
    #248013
    anabolictechnology
    Participant
    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?
    #248128
    Jackson
    Blocked
    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
    #248177
    anabolictechnology
    Participant
    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
    #248346
    Diana
    Participant
    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  
    #248406
    anabolictechnology
    Participant
    Thank you it worked.
    #248456
    Diana
    Participant
    Okay, Closing this topic then
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Remove shopping cart icon when logged in’ is closed to new replies.