- Posts: 3
COMMUNITY FORUM
How to add an "Icon" to newly added K2 Items?
- bassem
-
Topic Author
- Offline
- New Member
Less
More
10 years 7 months ago - 10 years 7 months ago #132161
by bassem
How to add an "Icon" to newly added K2 Items? was created by bassem
Hello,
Any idea, how to add an "Icon" to newly added K2 Items? same as with featured items? :unsure:
Mean if a new item is added, an Icon "NEW" will appear on the Item's photo. for a given days, say a week or... a month maybe.
Thanks for any support to this issue.!
Any idea, how to add an "Icon" to newly added K2 Items? same as with featured items? :unsure:
Mean if a new item is added, an Icon "NEW" will appear on the Item's photo. for a given days, say a week or... a month maybe.
Thanks for any support to this issue.!
Please Log in or Create an account to join the conversation.
- Mr_Anonymous
-
- Offline
- Premium Member
Less
More
- Posts: 92
10 years 7 months ago #132162
by Mr_Anonymous
Replied by Mr_Anonymous on topic Re: How to add an "Icon" to newly added K2 Items?
I was thinking about the same thing awhile ago. My idea was to replace the 'Featured' block to 'New' block via template override by editing the php and css so it shows a 'new' tag when the item is clicked as featured. I dont use featured option anyways so showing 'featured' as 'new' in item page might do it for me. Anyhow, I will be interested to see if Krikor or others have any suggestions on this.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 7 months ago #132163
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: How to add an "Icon" to newly added K2 Items?
This can be done via a template override.
PHP offers you several functions to check if the published (or created) date is older than a month or week etc...
Basically it is a simple PHP check 'if yes' then show a <div> element with a background or an icon font or simply do nothing.
PHP offers you several functions to check if the published (or created) date is older than a month or week etc...
Basically it is a simple PHP check 'if yes' then show a <div> element with a background or an icon font or simply do nothing.
Please Log in or Create an account to join the conversation.
- Stuart Claggett
-
- Offline
- Junior Member
Less
More
- Posts: 21
10 years 7 months ago - 10 years 7 months ago #132164
by Stuart Claggett
Replied by Stuart Claggett on topic Re: How to add an "Icon" to newly added K2 Items?
I use font awesome icons in my override templates. They work great. There are various methods that can be used to install it in joomla
This is an example of how I changed the read more text to something a little more pleasing at least to me.
This is an example of how I changed the read more text to something a little more pleasing at least to me.
Log in or Create an account to join the conversation.