You are here

README.txt in Responsive Favicons 7

Same filename and directory in other branches
  1. 8 README.txt
Responsive Favicons
-------------------

This module adds the favicons generated by http://realfavicongenerator.net/ to
your site. The responsive name comes from the fact that many devices are
catered for including iPhone, Android, iPad, other tablets and dektops.


Requirements
------------

* Drupal 7
* Favicon files generated by http://realfavicongenerator.net/
* HTML code generated by http://realfavicongenerator.net/


Installation and configuration
------------------------------

1. Generate the favicons and the HTML code on http://realfavicongenerator.net/

   You will need a 260x260px PNG file with appropriate transparency already
   created. Smaller files can be uploaded but these will produce inferior
   results.

   When asked for the "path" in realfavicongenerator.net select "I will place
   favicon files (favicon.ico, apple-touch-icon.png, etc.) at the root of my web
   site. Recommended." - this is because Drupal will rewrite the URLs based on
   your configuration of the module for you.

2. Install Responsive Favicons module as you install a contributed Drupal module.
   See https://drupal.org/documentation/install/modules/themes/modules-7

3. Go to /admin/config/user-interface/responsive_favicons to configure the
   module.

   Here you will need to paste in the HTML provided by realfavicongenerator.net
   and upload the zip file they provided you with.

4. [optional] You can also allow this module to take over common paths like:

   * favicon.ico
   * apple-touch-icon.png
   * apple-touch-icon-precomposed.png
   * browserconfig.xml

   In order to do this you need to:

   1) Comment out the line

   #RewriteCond %{REQUEST_URI} !=/favicon.ico

   in the Drupal root .htaccess file.

   2) Alter the variable 404_fast_paths_exclude in your settings.php file:

   $conf['404_fast_paths_exclude'] = '/\/(?:styles)\/|favicon\.ico|apple-touch-icon(?:-precomposed)?\.png|browserconfig\.xml/';

You site will now output the required metadata for the favicons to work. You can
always check the status report page to find out if your site has been correctly
configured.

Note. The 'favicon' module duplicates some of the functionality of responsive
favicons, so it is preferred that you only install one of the two modules.


Further reading
---------------

This entire module was spawned from a blog post on the topic located at
http://www.pixelite.co.nz/article/adding-apple-android-favicons-drupal

File

README.txt
View source
  1. Responsive Favicons
  2. -------------------
  3. This module adds the favicons generated by http://realfavicongenerator.net/ to
  4. your site. The responsive name comes from the fact that many devices are
  5. catered for including iPhone, Android, iPad, other tablets and dektops.
  6. Requirements
  7. ------------
  8. * Drupal 7
  9. * Favicon files generated by http://realfavicongenerator.net/
  10. * HTML code generated by http://realfavicongenerator.net/
  11. Installation and configuration
  12. ------------------------------
  13. 1. Generate the favicons and the HTML code on http://realfavicongenerator.net/
  14. You will need a 260x260px PNG file with appropriate transparency already
  15. created. Smaller files can be uploaded but these will produce inferior
  16. results.
  17. When asked for the "path" in realfavicongenerator.net select "I will place
  18. favicon files (favicon.ico, apple-touch-icon.png, etc.) at the root of my web
  19. site. Recommended." - this is because Drupal will rewrite the URLs based on
  20. your configuration of the module for you.
  21. 2. Install Responsive Favicons module as you install a contributed Drupal module.
  22. See https://drupal.org/documentation/install/modules/themes/modules-7
  23. 3. Go to /admin/config/user-interface/responsive_favicons to configure the
  24. module.
  25. Here you will need to paste in the HTML provided by realfavicongenerator.net
  26. and upload the zip file they provided you with.
  27. 4. [optional] You can also allow this module to take over common paths like:
  28. * favicon.ico
  29. * apple-touch-icon.png
  30. * apple-touch-icon-precomposed.png
  31. * browserconfig.xml
  32. In order to do this you need to:
  33. 1) Comment out the line
  34. #RewriteCond %{REQUEST_URI} !=/favicon.ico
  35. in the Drupal root .htaccess file.
  36. 2) Alter the variable 404_fast_paths_exclude in your settings.php file:
  37. $conf['404_fast_paths_exclude'] = '/\/(?:styles)\/|favicon\.ico|apple-touch-icon(?:-precomposed)?\.png|browserconfig\.xml/';
  38. You site will now output the required metadata for the favicons to work. You can
  39. always check the status report page to find out if your site has been correctly
  40. configured.
  41. Note. The 'favicon' module duplicates some of the functionality of responsive
  42. favicons, so it is preferred that you only install one of the two modules.
  43. Further reading
  44. ---------------
  45. This entire module was spawned from a blog post on the topic located at
  46. http://www.pixelite.co.nz/article/adding-apple-android-favicons-drupal