- Posts: 40
COMMUNITY FORUM
Featured Items
- Carlos
-
Topic Author
- Offline
- Senior Member
Less
More
11 years 7 months ago #119981
by Carlos
Featured Items was created by Carlos
Hello, I would like to replace where is says featured with an image instead. Been trying to figure it out but cant get it going? Can anyone help me with this? Thanks
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
11 years 7 months ago #119982
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Featured Items
Hello Carlos,
By default this can be changed in k2.css. Make sure that your template is not using its own version of k2.css. If not override it instead of editing it.
The language string is located in the item.php and category_item.php files.
This tutorial will help you locate the files you need to edit:
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
By default this can be changed in k2.css. Make sure that your template is not using its own version of k2.css. If not override it instead of editing it.
The language string is located in the item.php and category_item.php files.
This tutorial will help you locate the files you need to edit:
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
Please Log in or Create an account to join the conversation.
- Carlos
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 40
11 years 7 months ago #119983
by Carlos
Replied by Carlos on topic Re: Featured Items
Thank you. I tried several things with my cutom rss and even playing with the php files but i haven't been able to figure out how to properly alter it to have the image show on featured items?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
11 years 7 months ago #119984
by Krikor Boghossian
What are you trying to achieve? Are you trying to have images only in featured items or replacing the featured indicator? I do not understand what this has to do with RSS feeds.
Replied by Krikor Boghossian on topic Re: Featured Items
I tried several things with my cutom rss
What are you trying to achieve? Are you trying to have images only in featured items or replacing the featured indicator? I do not understand what this has to do with RSS feeds.
Please Log in or Create an account to join the conversation.
- Carlos
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 40
11 years 7 months ago #119985
by Carlos
Replied by Carlos on topic Re: Featured Items
Sorry rss was a typo, i meant to write custom css, i want replace the featured indicator with an image of my choosing instead of the text that shows.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
11 years 7 months ago #119986
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Featured Items
Ok then, I understood correctly.
Is the k2.css loading enabled? You need to check the component's settings to verify this.
If not you need to add the code to your template's css.
If it is, it is located in your template's /css folder or in the folder described by the tutorial (look at my first post).
If the developer has stripped K2's default styling you can check the default k2.css to see how it's done.
Is the k2.css loading enabled? You need to check the component's settings to verify this.
If not you need to add the code to your template's css.
If it is, it is located in your template's /css folder or in the folder described by the tutorial (look at my first post).
If the developer has stripped K2's default styling you can check the default k2.css to see how it's done.
Please Log in or Create an account to join the conversation.
- Carlos
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 40
11 years 7 months ago #119987
by Carlos
Replied by Carlos on topic Re: Featured Items
I have been using a custom CSS for K2 with has work for other things i made adjustments to. I tried it in that and even my templates custom css file. Perhaps im not putting the right thing in this is what i was trying:
Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
11 years 7 months ago #119988
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Featured Items
The code seems correct, but you need to open your browser's developer tools and make sure that other values from your template are not overriding this.
Finally make sure your template has that class in it's overrides.
Finally make sure your template has that class in it's overrides.
Please Log in or Create an account to join the conversation.
- Carlos
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 40
11 years 7 months ago #119989
by Carlos
Replied by Carlos on topic Re: Featured Items
Nothing is overriding, i did try some other code:
Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
11 years 7 months ago #119990
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Featured Items
try text-indent or simply remove it from your overrides.
Please Log in or Create an account to join the conversation.
- Carlos
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 40
11 years 7 months ago #119991
by Carlos
Replied by Carlos on topic Re: Featured Items
Thanks I managed to get it go away by setting it transparent:
{font-size:15px;color: rgba(207, 24, 24, 0)
For some reason if i removed it the image would disappear too. Thanks for you help guiding towards a resolution. I really appreciate it.
{font-size:15px;color: rgba(207, 24, 24, 0)
For some reason if i removed it the image would disappear too. Thanks for you help guiding towards a resolution. I really appreciate it.
Please Log in or Create an account to join the conversation.