ulaskokten Posted October 21, 2015 Share Posted October 21, 2015 Hello, How can I change title and title description on announcements.php page? I can not see and edit that zone in announcements.tpl. Do you have any idea? How can I change it? For example; Default Title and Description: News All the latest from [companyname] Edit to: All news from [companyname] 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 21, 2015 Share Posted October 21, 2015 you can use Language Overrides to change that - http://docs.whmcs.com/Language_Overrides the line you'll need to replace with overrides is below... $_LANG['allthelatest'] = "All the latest from"; 0 Quote Link to comment Share on other sites More sharing options...
ulaskokten Posted October 21, 2015 Author Share Posted October 21, 2015 Hello "brian!", Thank you for your reply... I know that code. I can change it, but I can not change or remove only company name label. I want to change and/or remove company name label on announcements.php. How can I this? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 21, 2015 Share Posted October 21, 2015 take a look in header.tpl and the final section of the code - add the {if} statement after the section id line that's already there... <section id="main-body" class="container"> {if $filename eq "announcements"}{assign var=tagline value={$LANG.allthelatest}}{/if} then if you want to edit the text, just use the language override. 0 Quote Link to comment Share on other sites More sharing options...
ulaskokten Posted October 21, 2015 Author Share Posted October 21, 2015 Hello again "brian!", I am sorry. Used was, but does not work. Solved: It is very simple... <div class="header-lined"> <h1>{$title}{if $desc} <!--<small>{$desc}</small>-->{/if}</h1> {if $showbreadcrumb}{include file="$template/includes/breadcrumb.tpl"}{/if} </div> Disable "small" tag in pageheader.tpl, for hide company name, and then it's done!.. Have a good forums! Many regards! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 21, 2015 Share Posted October 21, 2015 Hello again "brian!",I am sorry. Used was, but does not work. it did work - I tested it before posting ! Solved: It is very simple... Disable "small" tag in pageheader.tpl, for hide company name, and then it's done!.. but that disables the descriptions on all the pages using pageheader - you only asked about modifying announcements! 0 Quote Link to comment Share on other sites More sharing options...
ulaskokten Posted October 21, 2015 Author Share Posted October 21, 2015 Really? Omg... I was changed to that codes; <div class="header-lined"> <h1>{$title}{if $desc} <small>{$LANG.allthelatest}</small>{/if}</h1> {if $showbreadcrumb}{include file="$template/includes/breadcrumb.tpl"}{/if} </div> No problem for now... 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.