I'd like to position the caterogy image for each post right next to a post's title and not within the post body.
Can someone tell me, where i have to edit the bulletproof template to achieve that?
Bulletproof: Position of category images?
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
You need to modify entries.tpl. This is the entry title:
This is the category icon:
You could relocate the icon to just before, or just after, the title.
Code: Select all
<h4 class="serendipity_title"><a href="{$entry.link}">{$entry.title}</a></h4>Code: Select all
{if $entry.categories}
<span class="serendipity_entryIcon">
{foreach from=$entry.categories item="entry_category"}
{if $entry_category.category_icon}
<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}" /></a>
{/if}
{/foreach}
</span>
{/if}=Don=
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Yes - obviously Don (me) knows thisyellowled wrote:Please note (derlinzer, not Don; Don should already know thisDon Chambers wrote:You could relocate the icon to just before, or just after, the title.) that you'll probably have to patch the entries.tpl with this every time BP is updated.
YL
=Don=
