cluster Posted March 8, 2023 Share Posted March 8, 2023 How can I remove the sidebar from register.php "Create Your Account" and set page width to 100%? I want to remove sidebar which shows: Already registered with us? If so, click the button below to login to our client area from where you can manage your account. I have already added this hook but it does not work for register.php <?php // Cart Sidebar Removal / Resizing v8.1 Hook // Written by brian! function cart_remove_sidebars_hook($vars) { $validtemplates = array(""); if ($vars['inShoppingCart'] && !in_array($vars['templatefile'],$validtemplates)) { $head_return = "<style>#order-standard_cart .cart-body { width:100% !important; } .cart-sidebar {display: none;}</style>"; return $head_return; } } add_hook("ClientAreaHeaderOutput",1,"cart_remove_sidebars_hook"); 0 Quote Link to comment Share on other sites More sharing options...
theozsnowman Posted March 26, 2023 Share Posted March 26, 2023 you need to specify what templates this is being hidden on: for example to hide it on the domain register and domain transfer pages: $validtemplates = array("domainregister", "domaintransfer"); // Define the array with valid templates here 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.