Skip to main content

how to dynamically change favicon in dokuwiki argon template?

 Put <link href="lib/tpl/argon/apple-touch-icon.png?v=<?php echo rand() ?>"> and <link href="lib/tpl/argon/favicon.ico?v=<?php echo rand() ?>"> in if statement and <link href="lib/tpl/argon/images/apple-touch-icon.png?v=<?php echo rand() ?>"> and <link href="lib/tpl/argon/images/favicon.ico?v=<?php echo rand() ?>"> in else if statement. Note: the images should be in 48*48 size.


Note: ?v=<?php echo rand() ?> is for busting the cache for favicon alone.

Note: You should comment out this block of php code:

echo tpl_favicon(array(

'favicon',

'mobile',

))

Comments

Popular posts from this blog