Tagged: x
-
AuthorPosts
-
July 11, 2016 at 8:37 am #1081389
stinosParticipantHi,
I Would like to include social media links + icons of platforms which are not by default included in the integrity footer/social menu. E.g.: 500px, Viewbug and maybe others in the future.
I would like them to be featured in the same way as the icons for Facebook/Instagram etc are featured with same spacing etc. I would also like to add them in my navbar, but from what I’ve found so far that is a bit more complicated with the integrity theme. So let’s start with the footer for now, I couldn’t find anything on that so far.
How can I achieve this? Do I need to replace one of the links/icons I don’t use under Customizer–>social or can I add it there somehow?
Looking forward to your reply,
Thanks
July 11, 2016 at 8:46 am #1081401
DarshanaModeratorHi there,
Thanks for writing in! Please check the following post for a possible implementation (https://community.theme.co/forums/topic/want-to-add-custom-social-media-icons-how-to-do-it/page/2/#post-318884).
Hope that helps.
July 11, 2016 at 9:21 am #1081467
stinosParticipantHi,
Thanks for your quick reply!
Just to summarize. I need to:
1) Create Child Theme.
2) Add custom .php as mentioned on top of page you referred me to
3) Replace a certain Social Media icon/link with link/icon I would like to use with following code (example by you)To replace Whatsapp with an email icon replace this line:
if ( $whatsapp ) : $output .= ‘<i class=”x-icon-whatsapp” data-x-icon=””></i>‘; endif;
With this:
if ( $whatsapp ) : $output .= ‘<i class=”x-icon-email” data-x-icon=””></i>‘; endif;
Few questions beforehand:
1) is this the correct order/flow?
2) I will read more about child themes, but do I need to re-do my whole website or will everything stay as it is?
3) How do I know if Themeco has the social media icons I need and how do I know what the code/location of that icon is?Thanks!
July 11, 2016 at 10:18 am #1081564
Nabeel AModeratorHi again,
1. Yes this is the correct order. You will just need to activate the child theme after installation, then add the mentioned code.
2. Everything will stay the same you don’t need to re-do your whole site.
3. You can refer to this link to find all the X theme icons and it’s code http://demo.theme.co/integrity-1/shortcodes/icons/
Thanks!
July 12, 2016 at 9:20 am #1083154
stinosParticipantPerfect thank you!
July 12, 2016 at 11:48 am #1083386
JadeModeratorYou’re welcome.
October 6, 2016 at 9:08 am #1205098
mariacolladoParticipantHi, is this code : (https://community.theme.co/forums/topic/want-to-add-custom-social-media-icons-how-to-do-it/page/2/#post-318884).
// Custom Social Output // // Adding Yelp // ============================================================================= if ( ! function_exists( 'x_social_global' ) ) : function x_social_global() { $facebook = x_get_option( 'x_social_facebook', '' ); $twitter = x_get_option( 'x_social_twitter', '' ); $google_plus = x_get_option( 'x_social_googleplus', '' ); $linkedin = x_get_option( 'x_social_linkedin', '' ); $xing = x_get_option( 'x_social_xing', '' ); $foursquare = x_get_option( 'x_social_foursquare', '' ); $youtube = x_get_option( 'x_social_youtube', '' ); $vimeo = x_get_option( 'x_social_vimeo', '' ); $instagram = x_get_option( 'x_social_instagram', '' ); $pinterest = x_get_option( 'x_social_pinterest', '' ); $dribbble = x_get_option( 'x_social_dribbble', '' ); $flickr = x_get_option( 'x_social_flickr', '' ); $behance = x_get_option( 'x_social_behance', '' ); $tumblr = x_get_option( 'x_social_tumblr', '' ); $whatsapp = x_get_option( 'x_social_whatsapp', '' ); $soundcloud = x_get_option( 'x_social_soundcloud', '' ); $rss = x_get_option( 'x_social_rss', '' ); $yelp = 'http://your-yelp-link-here/'; $output = '<div class="x-social-global">'; if ( $facebook ) : $output .= '<a href="' . $facebook . '" class="facebook" title="Facebook" target="_blank"><i class="x-icon-facebook-square" data-x-icon=""></i></a>'; endif; if ( $twitter ) : $output .= '<a href="' . $twitter . '" class="twitter" title="Twitter" target="_blank"><i class="x-icon-twitter-square" data-x-icon=""></i></a>'; endif; if ( $google_plus ) : $output .= '<a href="' . $google_plus . '" class="google-plus" title="Google+" target="_blank"><i class="x-icon-google-plus-square" data-x-icon=""></i></a>'; endif; if ( $linkedin ) : $output .= '<a href="' . $linkedin . '" class="linkedin" title="LinkedIn" target="_blank"><i class="x-icon-linkedin-square" data-x-icon=""></i></a>'; endif; if ( $xing ) : $output .= '<a href="' . $xing . '" class="xing" title="XING" target="_blank"><i class="x-icon-xing-square" data-x-icon=""></i></a>'; endif; if ( $foursquare ) : $output .= '<a href="' . $foursquare . '" class="foursquare" title="Foursquare" target="_blank"><i class="x-icon-foursquare" data-x-icon=""></i></a>'; endif; if ( $youtube ) : $output .= '<a href="' . $youtube . '" class="youtube" title="YouTube" target="_blank"><i class="x-icon-youtube-square" data-x-icon=""></i></a>'; endif; if ( $vimeo ) : $output .= '<a href="' . $vimeo . '" class="vimeo" title="Vimeo" target="_blank"><i class="x-icon-vimeo-square" data-x-icon=""></i></a>'; endif; if ( $instagram ) : $output .= '<a href="' . $instagram . '" class="instagram" title="Instagram" target="_blank"><i class="x-icon-instagram" data-x-icon=""></i></a>'; endif; if ( $pinterest ) : $output .= '<a href="' . $pinterest . '" class="pinterest" title="Pinterest" target="_blank"><i class="x-icon-pinterest-square" data-x-icon=""></i></a>'; endif; if ( $dribbble ) : $output .= '<a href="' . $dribbble . '" class="dribbble" title="Dribbble" target="_blank"><i class="x-icon-dribbble" data-x-icon=""></i></a>'; endif; if ( $flickr ) : $output .= '<a href="' . $flickr . '" class="flickr" title="Flickr" target="_blank"><i class="x-icon-flickr" data-x-icon=""></i></a>'; endif; if ( $behance ) : $output .= '<a href="' . $behance . '" class="behance" title="Behance" target="_blank"><i class="x-icon-behance-square" data-x-icon=""></i></a>'; endif; if ( $tumblr ) : $output .= '<a href="' . $tumblr . '" class="tumblr" title="Tumblr" target="_blank"><i class="x-icon-tumblr-square" data-x-icon=""></i></a>'; endif; if ( $whatsapp ) : $output .= '<a href="' . $whatsapp . '" class="tumblr" title="Whatsapp" target="_blank"><i class="x-icon-whatsapp" data-x-icon=""></i></a>'; endif; if ( $soundcloud ) : $output .= '<a href="' . $soundcloud . '" class="soundcloud" title="SoundCloud" target="_blank"><i class="x-icon-soundcloud" data-x-icon=""></i></a>'; endif; if ( $rss ) : $output .= '<a href="' . $rss . '" class="rss" title="RSS" target="_blank"><i class="x-icon-rss-square" data-x-icon=""></i></a>'; endif; if ( $yelp ) : $output .= '<a href="' . $yelp . '" class="yelp" title="Yelp" target="_blank"><i class="x-icon-yelp" data-x-icon=""></i></a>'; endif; $output .= '</div>'; echo $output; } endif;suposed to make appear the new social icon adition to the customizer? I have done it but nothing happens. Thanks in advanced!
October 6, 2016 at 11:27 am #1205277
RupokMemberIt’s a working example and it should add the Yelp icon. And you need to change the URL (http://your-yelp-link-here/) with your own.
Provide us your URL where you are trying to add this.
Thanks!
October 6, 2016 at 12:15 pm #1205359
mariacolladoParticipantHi Rupok, thanks for your answer. WHen you say it should add the Yelp Icon , do you mean it should be added also in the customizer menu, under the rest of the social media, under rss? I’m working locally so I will have to do it myself, but I have follow every step and it doesn’t work for me 🙁
ThanksOctober 6, 2016 at 1:42 pm #1205524
RupokMemberHi there,
It won’t add option to the Customzier as it’s just adding it within the code if you see
$yelp = 'http://your-yelp-link-here/';So it’s actually hard-coded within the code since adding to option is pretty complex and need more complex coding.
However the code seems pretty correct and should work fine. You can update us when you move your site to a server. We’ll surely look into it to solve this for you.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1081389 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
