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

How to directly save ai(illustrator image) to large size png or jpg?

There is no need to convert ai file to psd in order to make png or jpg. Open the file in illustrator. Just click on an empty area on the canvas and press delete key in keyboard to delete the canvas(do ungroup of images if every images gets deleted). Delete all the images but the one we need. Then click "export as" png or jpg from file menu option. In the next screen, you can select the resolution. Below 300ppi, there is 'other'. Click it and enter 712ppi. Thus you will get large crystal clear image. Do this for all the images you need.

Ubuntu 20.04 : pytest command gives this output -> E ImportError: No module named selenium, even after installing selenium

 Your selenium files will be inside /usr/local/lib/python3.8/dist-packages/ You have to copy and paste them in /usr/local/lib/python2.7/dist-packages/ and /usr/local/lib/python2.7/site-packages/ The main problem is there is python2 and python3 installed in your computer and python2 is actively used by your system now. And selenium is within python3 folder.