The final option is the creation of individual template files that are dedicated to overriding specific themable functions. This could be very helpful for the designer as PHP developer have done his work and designer now can do this XHTML and css work with it independently this is the major advantage of this technique.
Converting a function into a new template file gives both frontend and backend developer more flexibility than simply modifying the function inside the template.php file.
steps are as follows
Create a new .tpl.php file inside your theme directory.
Name the new file by taking the function name, dropping the prefix, and changing the underscores to dashes/hyphens. For example, the function theme_comment_view would become the template comment-view.tpl.php.
Paste into the new file the code from the function that relates to the formatting and the output.
0 Comment(s)