Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

K2 Featured Label

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

If anyone wants to change the Featured label in K2, per Simon Wells:

You will need to modify the following: /language/en-GB/en-GB.com_k2.ini
Look for Line 42: FEATURED

I am looking to replace the text with an image.

Anyone have any ideas?

Thanks,
K
  • kenlyle's Avatar
  • kenlyle
  • 6 Month Basic
  • 171 posts
  • Karma: 1
The administrator has disabled public write access.
I think you cold just set and image against this rule, in k2.css, which targets the featured text:

div.catItemHeader h2.catItemTitle span sup {

I haven't tried it, so don't hold me to that. ;)
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
Good thinking, and a heroic attempt.

After playing with various permutations of that in my k2.css, I can't find a rule to target that label.

Best,
Ken
  • kenlyle's Avatar
  • kenlyle
  • 6 Month Basic
  • 171 posts
  • Karma: 1
The administrator has disabled public write access.
It is already in k2.css, the overide version at least..
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
Which version number of which file, precisely, and if you wouldn't mind, which line number?

OK, finally found it.

The exact line is 144 in the component's k2.css:

div.itemHeader h2.itemTitle span sup {font-size:12px;color:#CF1919;text-decoration:none;} /* "Featured" presented in superscript */

Which is all really great, except that it's not working, but closer...

My best read on the CSS in Firebug is :

div.sectitemTitle div.titleWrapper h2 span sup{font-size:12px;color:#CF1919;text-decoration:italic;} /* "Featured" presented in superscript */

now that I look at it, seems that none of this is playing, because the text is coming out way too big.

Thanks for the pointer,
K
  • kenlyle's Avatar
  • kenlyle
  • 6 Month Basic
  • 171 posts
  • Karma: 1
Last Edit: 13 years 9 months ago by kenlyle.
The administrator has disabled public write access.
Hey Ken,

Got a direct link to where you are looking at? I tried to find the page on the site from the other post but no luck.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
See hairtheaterrva.com.nextwavetech.us/services/itemlist/category/4-hair-cut -There are a couple of Featured items there.

Thanks,
K
  • kenlyle's Avatar
  • kenlyle
  • 6 Month Basic
  • 171 posts
  • Karma: 1
The administrator has disabled public write access.
Hey Ken,

You have an extra bracket here:

#cart_form {
display:none;}
}

sup {background: green;}

Just remove that and you should be fine.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Nice spot.

Hey, just to acknowledge...thanks, because I know K2 isn't your product.

But I am not seeing any change in the Featured text, even if I change the properties in Firebug.

You see I was trying to start at the most basic level by defining sup in the CSS file, but that's not working for me, either.

It would be nice to get a K2featured class from K2 for this item, wouldn't it?

I am still open to ideas...

Best,
K
  • kenlyle's Avatar
  • kenlyle
  • 6 Month Basic
  • 171 posts
  • Karma: 1
The administrator has disabled public write access.
Ok it works for me here - perhaps try to specify more selectively:
div.sectitemTitle div.titleWrapper h2 span sup {font-size: 20%;}

Let us know how that goes.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
You are my CSS hero, sir!

Now I can create ugly effects like the attached.

Hopefully, Google finds this thread, and all the K2 users looking for this answer find there way to your clubhouse.

Best,
Ken
  • kenlyle's Avatar
  • kenlyle
  • 6 Month Basic
  • 171 posts
  • Karma: 1
The administrator has disabled public write access.
LOL Thanks!
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers