By allwires on
Hey guys,
I have not done very much with php yet and after looking at some of the Drupal theme documentation I am still not sure (probably because of lack of php knowledge).
Could someone give me a quick pointer on how to edit garland to put Category:TaxonomyTerm at the end of my posts? Right now all it does is just lists the category, so there is just a random word at the end of my posts. I want it to be known that this is a category. I know this sounds so simple but I just can't figure out where to put
Category:
Thanks
-Adam
Comments
_
Editing garland isn't usually a good idea since it's a core theme it will get overwritten when you upgrade, but you would edit the node.tpl.php file and change
<div class="terms"><?php print $terms ?></div>to<div class="terms">Category: <?php print $terms ?></div>.No duplicates?
Thanks for the reply. I made a copy of the garland theme into the sites/all/themes/ folder and renamed it in the .info file so I don't screw up the core theme. Is there some reason that my website is not displaying the core theme and is instead displaying the new theme? Shouldn't it have both? I change the name in the info to custom_garland.
Edit: I just realized that changing theme files in the new folder doesn't have any effect, but changing them in the new one does.
_
Rename the garland.info as well as change the name in the info file. Also, I would remove the 'minelli' subdirectory if you haven't already. Then clear the cache (admin/settings/performance) and see if you're still having problems.
Thanks
That worked, thanks!