Jump to content

Favicon is not coming in some pages, including login , cart page


Recommended Posts

ideally, you wouldn't edit any template for this - it's really a task for a hook (otherwise you'll be editing the template after every update).

<?
add_hook('ClientAreaHeadOutput', 1, function($vars) {
	return '<link rel="icon" href="https://www.youstable.com/favicon.ico" />';
});
Link to comment
Share on other sites

  • 5 months later...
On 6/6/2020 at 5:45 PM, brian! said:

ideally, you wouldn't edit any template for this - it's really a task for a hook (otherwise you'll be editing the template after every update).


<?
add_hook('ClientAreaHeadOutput', 1, function($vars) {
	return '<link rel="icon" href="https://www.youstable.com/favicon.ico" />';
});

@brian! Thanks a lot! 

Link to comment
Share on other sites

On 6/6/2020 at 9:45 AM, brian! said:

ideally, you wouldn't edit any template for this - it's really a task for a hook (otherwise you'll be editing the template after every update).


<?
add_hook('ClientAreaHeadOutput', 1, function($vars) {
	return '<link rel="icon" href="https://www.youstable.com/favicon.ico" />';
});

Ideally you should not need to run PHP server side code to add a favicon.ico to a webpage. Having to run server back end code to show a front-end code makes no sense. This should work by default by hey that is just me 😁

You will end up with hundreds of hooks eventually if you need one for every CSS or HTML change. Therefore, template systems like Smarty, Blade or Twig where created. I'm curious why WHMCS even ships with Smarty at this point if they are not effectively use it the template features.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated