kashif rasool Posted April 6 Share Posted April 6 Hi everyone, I’m currently working with the Standard Cart order form template in WHMCS and trying to improve the mobile user experience. On mobile devices, the sidebar (showing Categories, Actions, and Currency) appears at the top of the cart page, which negatively affects the user experience and conversions. I’ve identified the related template files: sidebar-categories.tpl sidebar-categories-collapsed.tpl sidebar-categories-selector.tpl I attempted the following: Removed the mobile block from sidebar-categories.tpl Emptied sidebar-categories-collapsed.tpl Cleared template cache However, the sidebar is still showing on mobile. What I want to achieve: Hide/remove the sidebar only on mobile devices Keep the desktop sidebar unchanged Questions: Is there another file (like viewcart.tpl or a hook) that controls the mobile sidebar output? Is WHMCS injecting this via JS or another include that I might be missing? What is the recommended way to disable the mobile sidebar cleanly? Any help or direction would be greatly appreciated. Thanks in advance! 0 Quote Link to comment Share on other sites More sharing options...
Vyas Deep Posted April 9 Share Posted April 9 On 4/6/2026 at 3:56 PM, kashif rasool said: Hide/remove the sidebar only on mobile devices Try this: @media (max-width: 768px) { .sidebar { display: none; } } 1 Quote Link to comment Share on other sites More sharing options...
sentq Posted April 24 Share Posted April 24 locate (or create the file if not existed): {WHMCS-ROOT-DIR}/templates/{Active-Template}/css/custom.css and add the following to it, it will hide cart sidebars in mobile/tables screens only: @media (max-width: 768px) { #order-standard_cart .cart-sidebar { display: none !important; } } or if you want to hide it for mobile devices only, use this: @media (max-width: 576px) { #order-standard_cart .cart-sidebar { display: none !important; } } 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.