f
A simple WHMCS hook script to customize the footer text and URL. This script replaces the "Powered by WHMCompleteSolution" text with your own branding and updates the URL accordingly.
Custom WHMCS Footer Hook - a simple script to customize the footer text and URL in WHMCS. Change "Powered by WHMCompleteSolution" to your own branding and link.
Modify Footer Text: Changes "Powered by WHMCompleteSolution" to "Powered by company". Update Footer URL: Replaces the WHMCS link with a custom URL (https://company.com).
Download the repository as a ZIP file from here.
Extract the contents of the ZIP file to a directory on your computer.
Upload the custom_footer.php file to the includes/hooks directory of your WHMCS installation. The final path should look like this:
/path/to/your/whmcs/includes/hooks/custom_footer.php
Clear your browser cache and refresh your WHMCS client area to see the changes.
This hook uses JavaScript to modify the DOM elements after the page has loaded. It targets the specific footer text and link and updates them as per the custom values provided.
<?php
add_hook('ClientAreaFooterOutput', 1, function($vars) {
return '<script>
document.addEventListener("DOMContentLoaded", function() {
var footerText = document.querySelector("p[style*=\'text-align:center;\']");
var footerLink = footerText.querySelector("a[href*=\'www.whmcs.com\']");
if (footerText && footerLink) {
footerText.childNodes[0].textContent = "Powered by ";
footerLink.innerHTML = "COMPANY";
footerLink.href = "https://company.com";
}
});
</script>';
});
For any issues or questions, please open an issue in this repository or contact us directly.