superman15 Posted September 8, 2015 Share Posted September 8, 2015 Right i have created the following files WHMCS_DIR/test.php WHMCS_DIR/template/demo/test.tpl I wanted to remove the breadcrum and the page title from the top of the page on this custom page. So i found "pageheader.tpl" in "WHMCS_DIR/templates/demo/includes/pageheader.tpl" and found the following code <div class="header-lined"> <h1>{$title}{if $desc} <small>{$desc}</small>{/if}</h1> {if $showbreadcrumb}{include file="$template/includes/breadcrumb.tpl"}{/if} </div> and i changed it to the following {if $filename!='test'} <div class="header-lined"> <h1>{$title}{if $desc} <small>{$desc}</small>{/if}</h1> {if $showbreadcrumb}{include file="$template/includes/breadcrumb.tpl"}{/if} </div> {/if} This has removed what i need from the page, but the issue is it only removes what i want it too from test.php i would like to be able to use the instance above on more than one page. I was wondering if there was some code i was missing to make this work over multiple pages. Any help would be greatly apprechiated Many thanks 0 Quote Link to comment Share on other sites More sharing options...
superman15 Posted September 8, 2015 Author Share Posted September 8, 2015 {if $filename!='test' && $filename!='test2'} <div class="header-lined"> <h1>{$title}{if $desc} <small>{$desc}</small>{/if}</h1> {if $showbreadcrumb}{include file="$template/includes/breadcrumb.tpl"}{/if} </div> {/if} - - - Updated - - - I worked it out here is how i did it {if $filename!='test' && $filename!='test2'} <div class="header-lined"> <h1>{$title}{if $desc} <small>{$desc}</small>{/if}</h1> {if $showbreadcrumb}{include file="$template/includes/breadcrumb.tpl"}{/if} </div> {/if} 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.