Skip to Content Skip to Menu

[SOLVED] Delimiter field to show LinkedIn icon

  • Astrid
  • Astrid
  • ONLINE
  • Posts: 183
  • Thanks: 68
  • Karma: 10
10 years 2 months ago - 10 years 2 months ago #248239 by Astrid
I can't find a setting to hide the LinkedIn icon when there is no url in the linkedin field.
This is working, but it shows the icon for all members:
Code:
<a href="//[cb_linkedin]" target="_blank"><img src="/images/linked/linkdin.png" alt="LinkedIn" /></a>
How do I proceed to hide it when cb_linkedin is empty?

Found it!
Code:
[cb:if cb_linkedin!=""]<a href="https://[cb_linkedin]" target="_blank"><img src="/images/linked/linkdin.png" alt="LinkedIn" /></a>[/cb:if]
Last edit: 10 years 2 months ago by krileon.
The following user(s) said Thank You: krileon, AchLive

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

Moderators: beatnantkrileon
Powered by Kunena Forum