Reputation: 11
I am a newbie and this is the first time ever I am asking a question in this community.
One of my friends just recently update his WHMCS to the latest version and suddenly he got a branding line before the footer area. In the previous version, he was able to remove that line by editing the footer.tpl file but in this version, he couldn't find it because now it's written in tags. (p and a)
I found one jquery code mentioned below:
$(document).ready(function() {
$("p a").each(function(){
if( $(this).attr("href")=="http://www.whmcs.com/" ) {
$(this).parent().hide();
}
});
});
But I don't know either it's fine or where to put this one.
Please guide and help how to remove it, as now in the client area it is visible to everyone now.
Upvotes: 1
Views: 4990
Reputation:
There are two ways to remove WHMCS branding.
<script>
if($("p:contains('Powered by')").length){
$("p:contains('Powered by')").hide();
}
</script>
Upvotes: 2
Reputation: 11
For anyone interested.
Am using the SwiftModders theme and found it in the following file
\templates\swiftmodders\js\swiftmodders.min.js
Used Notepad++ and searched "Powered by" and deleted that section.
Issue resolved ^^
Upvotes: 1
Reputation: 63
Try adding this code in custom.css in your template
#main-body .primary-content p:last-child{
display: none;
}
Upvotes: 1
Reputation: 31
In version 8.3 go to your template, I am using the "twentyone" template. Access your footer.tpl and paste this on line 1.
<script type="text/javascript">$("p:contains('Powered by')").remove();$('#page');</script>
Upvotes: 2
Reputation: 33943
Using attribute selector... This should work:
$(document).ready(function() {
$("[href*='whmcs.com']").each(function(){
$(this).parent().remove();
});
});
So you now target the elements by the href
value... Whatever the DOM structure.
If the href
contains whmcs.com
(the *=
operator), the parent of that element will be removed.
Upvotes: 4
Reputation: 41
There are two ways to remove WHMCS branding.
From the login page, you can edit admindir/templates/login.tpl to remove the link
<script>if ($(“p:contains(‘Powered by’)”).length) {$(“p:contains(‘Powered by’)”).hide();}</script>
Upvotes: 0