darkknight1985 Posted June 12, 2017 Share Posted June 12, 2017 Hello, I am quite new to WHMCS. My client wants to change the visual aspects of the WHMCS to make them more aligned with his website's aesthetic. One of the requirements I have is to remove the sidebar from certain pages (Eg:- Product Details pages, Checkout pages, etc.). By removing I mean to completely do away with them so the rest of the page's content takes up the entirety of the page. I was able to remove the sidebar from the product details pages by modifying the header.tpl using this great piece of code I found on another thread. {if !$inShoppingCart && ($primarySidebar->hasChildren() || $secondarySidebar->hasChildren()) && $templatefile neq 'clientareaproductdetails'} {if $primarySidebar->hasChildren()} <div class="col-md-9 pull-md-right"> {include file="$template/includes/pageheader.tpl" title=$displayTitle desc=$tagline showbreadcrumb=true} </div> {/if} <div class="col-md-3 pull-md-left sidebar"> {include file="$template/includes/sidebar.tpl" sidebar=$primarySidebar} </div> {/if} <!-- Container for main page display content --> <div class="{if !$inShoppingCart && ($primarySidebar->hasChildren() || $secondarySidebar->hasChildren()) && $templatefile neq 'clientareaproductdetails'}col-md-9 pull-md-right{else}col-xs-12{/if} main-content"> {if !$primarySidebar->hasChildren() && !$showingLoginPage && !$inShoppingCart && $templatefile != 'homepage' || $templatefile eq 'clientareaproductdetails'} {include file="$template/includes/pageheader.tpl" title=$displayTitle desc=$tagline showbreadcrumb=true} {/if} Can someone please tell me how to enhance this code to remove the sidebar from the checkout pages as well. Thanks in advance! 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.