You are here

README.txt in Flag 7.3

Same filename in this branch
  1. 7.3 README.txt
  2. 7.3 theme/README.txt
Same filename and directory in other branches
  1. 5 theme/README.txt
  2. 6.2 theme/README.txt
  3. 6 theme/README.txt
  4. 7.2 theme/README.txt
Theming instructions
====================

You may want to visit the Theming Guide of this module, at:

  http://drupal.org/node/295346

Template file
-------------
In order to customize flag theming:

- Copy the 'flag.tpl.php' template file into your theme's folder.[1]

- Clear your theme registry.[2]

- Edit that copy to your liking.


Template variants
-----------------
The theme layer will first look for the following templates in this order:
  - flag--<FLAG_NAME>.tpl.php
  - flag--<FLAG_LINK_TYPE>.tpl.php
  - flag.tpl.php
These should also be placed in your theme's folder.[2][1]


Footnotes
---------
[1] Or to a sub-folder in your theme's folder.

[2] Clearing the theme registry makes Drupal aware of your new template
file. This step is needed if you create or rename template files. This
step *isn't* needed if you merely modify the contents of a file. Instructions
on how to clear you theme registry are at http://drupal.org/node/173880#theme-registry

File

theme/README.txt
View source
  1. Theming instructions
  2. ====================
  3. You may want to visit the Theming Guide of this module, at:
  4. http://drupal.org/node/295346
  5. Template file
  6. -------------
  7. In order to customize flag theming:
  8. - Copy the 'flag.tpl.php' template file into your theme's folder.[1]
  9. - Clear your theme registry.[2]
  10. - Edit that copy to your liking.
  11. Template variants
  12. -----------------
  13. The theme layer will first look for the following templates in this order:
  14. - flag--.tpl.php
  15. - flag--.tpl.php
  16. - flag.tpl.php
  17. These should also be placed in your theme's folder.[2][1]
  18. Footnotes
  19. ---------
  20. [1] Or to a sub-folder in your theme's folder.
  21. [2] Clearing the theme registry makes Drupal aware of your new template
  22. file. This step is needed if you create or rename template files. This
  23. step *isn't* needed if you merely modify the contents of a file. Instructions
  24. on how to clear you theme registry are at http://drupal.org/node/173880#theme-registry