Different Background Images for Categories In Directory List

More
12 years 5 months ago #20720 by flexij
Is there a way to assign a different background image to every category in a flexicontent directory?

Just adding a background image to the css file makes the background the same for every category link. I need the backgrounds to be different. Suggestions?

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #20722 by ggppdk
you could use the category id to create a unique class name, e.g. in file category.php of your template replace line (at file top):
<div id="flexicontent" class="flexicontent">

with:
<div id="flexicontent" class="flexicontent fccatview_<?php echo $this->category->id; ?>">

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.243 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline