Questions:
1) Where do I add: <link href="templates/custom.css" rel="stylesheet"> in the PHP file? I assume the PHP file I need to update is: whmcs/admin/login.php
2) How do I make the admin login page show the image I uploaded and overwrote the original whmcs image?
- - - Updated - - -
I tried creating a hook and it didn't work.
Inside includes/hooks I created a file called admincss.php
It has the below code in it:
<?php
function admin_custom_css_hook($vars) {
$currenttemplate = $vars['template'];
$head_return = '';
$head_return = '<link href="templates/'.$currenttemplate.'/custom_css.css" rel="stylesheet" type="text/css" />';
return $head_return;
}
add_hook("AdminAreaHeadOutput",1,"admin_custom_css_hook");
The css for custom_css.css is located here: public_html/whmcs/admin/templates/lara/css/custom_css.css