Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
- This topic has 4 replies, 2 voices, and was last updated 8 years, 8 months ago by
dominic loiacono.
-
AuthorPosts
-
04/04/2015 at 3:42 pm #330528
dominic loiacono
ParticipantHi Steven, thanks again for the awesome plugin and great support. I thought I posted this question this morning but cant seem to find it, sorry if it is a re-post.
I asked part of this question before but not exactly. http://connections-pro.com/support/topic/add-website-and-email-to-social-icons/
Can you add a link icon to the social media icon set? or add the option to have websites display as an icon like we can with emails? I made the change manually but it gets overwritten on every update.
thanks
dom
04/06/2015 at 1:02 pm #330733Steven Zahm
Keymaster@ dominic
Well, I will not be adding a link option to the social media options. That said, adding a way to display a link with an icon would be good to add.
What is the change that you make?
04/06/2015 at 8:39 pm #330777dominic loiacono
Participantdidn’t think so about the link option might have been too confusing. web link icon would be great in the near future :)
the change I make is adding ‘website’ => ‘Website’ to the getDefaultSocialMediaValues() function in class.options.php
Can it be overwritten using snippets?
Once I do that I re-upload the various link icons into the icon folder.
'`
04/07/2015 at 10:40 pm #330908Steven Zahm
Keymaster@ dominic
Ok, 8.2.5 (when released) will contain a icon for links and an option to use them. It can be used just like the email icons as mention in this reply in the other thread. Example:
[connections link_format='%icon%']
If you do not like the icon I chose and wish to use yours instead, there is a filter name is:
cn_output_link_icon
Use it like so:
add_filter( 'cn_output_link_icon', 'cn_custom_link_icon', 10, 2); function cn_custom_link_icon( $icon, $type ) { switch( $icon['width'] ) { case 16: $icon['src'] = 'path/to/your/16px/icon.png'; break; case 24: $icon['src'] = 'path/to/your/24px/icon.png'; break; case 32: $icon['src'] = 'path/to/your/32px/icon.png'; break; case 48: $icon['src'] = 'path/to/your/48px/icon.png'; break; case 64: $icon['src'] = 'path/to/your/64px/icon.png'; break; } return $icon; }
The
$type
var is the link type; ie.blog
orwebsite
. So you could get creative and assign custom icons by link type.That should cover it I believe. Hope that helps!
04/07/2015 at 11:41 pm #330909dominic loiacono
Participantyou are awesome.
Thanks
-
AuthorPosts
You must be logged in to reply to this topic.