fbpx
Welcome, Guest
Username: Password: Remember me

TOPIC: How to add several custom social icons (not only one)?

How to add several custom social icons (not only one)? 3 years 2 weeks ago #8668

  • mmz1230
  • mmz1230's Avatar
  • Offline
  • Junior Member
  • Posts: 34
  • Thank you received: 2
  • Karma: 0
Hi
How can I add more than one custom social icons in JD Boston style Basic?
The administrator has disabled public write access.

How to add several custom social icons (not only one)? 3 years 2 weeks ago #8676

  • chandandeep
  • chandandeep's Avatar
  • Offline
  • Administrator
  • Posts: 4614
  • Thank you received: 652
  • Karma: 116
Hello,

You can easily add the social icons input field via social.php file.

Path: templates/jd_boston/features/social.php

Thanks,
Chandan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.

To know more about products check out the their documentation.
The administrator has disabled public write access.

How to add several custom social icons (not only one)? 3 years 2 weeks ago #8689

  • mmz1230
  • mmz1230's Avatar
  • Offline
  • Junior Member
  • Posts: 34
  • Thank you received: 2
  • Karma: 0
Thank you.
I added these lines (in appropriate place):

$telegram = $this->helix3->getParam('telegram');
if( $telegram ) {
$html .= '<li><a target="_blank" href="'. $telegram .'" aria-label="telegram"><i class="fa fa-telegram"></i></a></li>';
}
and edited one line as:
if( $this->helix3->getParam('show_social_icons') && ( $facebook || $twitter || $googleplus || $pinterest || $youtube || $linkedin || $dribbble || $behance || $skype || $flickr || $vk || $telegram) ) {
but it did not work (no field for Telegram was added). Is it wrong or should I do more steps?
By the way, by my original topic I meant is there any way to add several social icons in the existing custom field (not to add new fields)? I tested separating by space, comma and semicolon but it did not work.
The administrator has disabled public write access.

How to add several custom social icons (not only one)? 3 years 1 week ago #8710

  • chandandeep
  • chandandeep's Avatar
  • Offline
  • Administrator
  • Posts: 4614
  • Thank you received: 652
  • Karma: 116
Hello,

Sorry for late reply. Your code is 100% correct. Just add one more line in templateDetails.xml file.

<field name="telegram" type="text" label="Telegram" description="Telegram Username" class="child social_icons social_icons_1" />
Path: templates/jd_boston/templateDetails.xml

Thanks,
Chandan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.

To know more about products check out the their documentation.
The administrator has disabled public write access.
The following user(s) said Thank You: mmz1230

How to add several custom social icons (not only one)? 3 years 1 week ago #8731

  • mmz1230
  • mmz1230's Avatar
  • Offline
  • Junior Member
  • Posts: 34
  • Thank you received: 2
  • Karma: 0
Thanks for your help. Solved. But if you could make it possible to insert several social icons, e.g. separated by semicolons, in the custom field it would be much more convenient.
The administrator has disabled public write access.

How to add several custom social icons (not only one)? 3 years 1 week ago #8738

  • chandandeep
  • chandandeep's Avatar
  • Offline
  • Administrator
  • Posts: 4614
  • Thank you received: 652
  • Karma: 116
Good to know that this is working for you.
Sorry, We can't do this.

Thanks,
Chandan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.

To know more about products check out the their documentation.
The administrator has disabled public write access.
Moderators: chandandeep
Time to create page: 0.313 seconds