- Posts: 4
COMMUNITY FORUM
extra fields to icons
- Eric Hoegee
-
Topic Author
- Offline
- New Member
Less
More
10 years 11 months ago #128424
by Eric Hoegee
extra fields to icons was created by Eric Hoegee
Hi All,
I made extra fields to display social media icons per item. So, i can select per k2 item which icons i would like to display.
This is what i have done so far and it neatly outputs in text.
How could i replace this text for an icon? So, if people select facebook and twitter those icons show up instead of text?
Thanks in advance!
I made extra fields to display social media icons per item. So, i can select per k2 item which icons i would like to display.
This is what i have done so far and it neatly outputs in text.
<?
if($_SESSION['catid'] !=38){
?>
<span class="desc_h" style="padding-left: 5px;"> Social icons: </span>
<span class="param"><?php echo $e['Icons'] ?></span>
<br/>
<?
}
?>
How could i replace this text for an icon? So, if people select facebook and twitter those icons show up instead of text?
Thanks in advance!
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 11 months ago #128425
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: extra fields to icons
Hi. This is up to you. I would try to add a different class name and style accordingly using CSS.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Eric Hoegee
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
10 years 11 months ago #128426
by Eric Hoegee
Replied by Eric Hoegee on topic Re: extra fields to icons
Ok, i thought about that. The thing is how. I made the input a Multi-Select list.
But it just outputs like this:
But it just outputs like this:
Log in or Create an account to join the conversation.
- Eric Hoegee
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
10 years 10 months ago #128427
by Eric Hoegee
Replied by Eric Hoegee on topic Re: extra fields to icons
Sorry, but i am still struggling with this, this is the only and last time i will bump it. Please people, who can advice? :)
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 10 months ago #128428
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: extra fields to icons
Maybe this can help you getk2.org/community/English-K2-Community/194802-Multi-select-list-result-in-a-loop .
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Eric Hoegee
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
10 years 10 months ago #128429
by Eric Hoegee
Replied by Eric Hoegee on topic Re: extra fields to icons
Thanks, i have seen that post but truly don't understand how that can help me. I am sorry my php is not my best feature ;)
Could you please clarify?
Thanks
Could you please clarify?
Thanks
Please Log in or Create an account to join the conversation.