Blunch Restaurant
Blunch Restaurant

Reputation: 11

How to remove Branding WHMCS Ver 8.1 "Powered by WHMcomplete solutions"

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

Answers (6)

user13190087
user13190087

Reputation:

There are two ways to remove WHMCS branding.

<script>
    if($("p:contains('Powered by')").length){
        $("p:contains('Powered by')").hide();
    }
</script>

Upvotes: 2

insanity .Gaming
insanity .Gaming

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

Hussain Jawadwala
Hussain Jawadwala

Reputation: 63

Try adding this code in custom.css in your template

#main-body .primary-content p:last-child{
display: none;

}

Upvotes: 1

The Turn Group
The Turn Group

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

Louys Patrice Bessette
Louys Patrice Bessette

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

Shahzeb Ahmed
Shahzeb Ahmed

Reputation: 41

There are two ways to remove WHMCS branding.

  1. In the admin area, you can edit the footer.tpl file to remove the link to whmcs.com from the main admin area.

From the login page, you can edit admindir/templates/login.tpl to remove the link

  1. Second goto your Footer file and paste this script.

<script>if ($(“p:contains(‘Powered by’)”).length) {$(“p:contains(‘Powered by’)”).hide();}</script>

Upvotes: 0

Related Questions