Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › substitute a social network icon for our own icon & problems with qtranslatex
New Landing › How can we help? › Themeforest Theme Support › Dante › substitute a social network icon for our own icon & problems with qtranslatex
- This topic has 12 replies, 4 voices, and was last updated 9 years by Rui Guerreiro – SUPPORT.
-
Posted in: Dante
-
October 16, 2015 at 7:38 pm #221317
Hi, we would like to add our own social network icon together with Twitter, Youtube, etc. Is it possible?
On the other hand, we were using the language plugin Polylang but the search option of Dante stopped working. Then, we used the plugin qtranslatex, however, it does not work with the page builder of Dante. It is only compatible with the classic version of the theme.
Can you help?
October 19, 2015 at 11:40 am #221506Hi,
1- Do you want to change social icon at footer? What icon do you want to add?2- Please check this for translation http://dante.swiftideas.net/documentation/#translation.
Thanks
MohammadOctober 19, 2015 at 2:33 pm #221608We want to change the social icon at top of menu and also at footer, also the social icons that we have in our Contact page.
We want to add our own social network which would have the following link: https://app.appgree.com/
I attach the icon we would like to add to these social icons just in case it helps you guide us.
Attachments:
You must be logged in to view attached files.October 19, 2015 at 4:32 pm #221663Hi,
Please just add this code at functions.php of child theme. Just change icon_image_path with icon image path url in code.function sf_social_icons($atts, $content = null) { extract(shortcode_atts(array( "type" => '', "size" => 'standard', "style" => '' ), $atts)); $options = get_option('sf_dante_options'); $twitter = $options['twitter_username']; $facebook = $options['facebook_page_url']; $dribbble = $options['dribbble_username']; $vimeo = $options['vimeo_username']; $tumblr = $options['tumblr_username']; $skype = $options['skype_username']; $linkedin = $options['linkedin_page_url']; $googleplus = $options['googleplus_page_url']; $flickr = $options['flickr_page_url']; $youtube = $options['youtube_url']; $pinterest = $options['pinterest_username']; $foursquare = $options['foursquare_url']; $instagram = $options['instagram_username']; $github = $options['github_url']; $xing = $options['xing_url']; $rss = $options['rss_url']; $behance = $options['behance_url']; $soundcloud = $options['soundcloud_url']; $deviantart = $options['deviantart_url']; $social_icons = ''; if ($type == '') { if ($twitter) { $social_icons .= '<li class="twitter"><a href="http://www.twitter.com/'.$twitter.'" target="_blank"><i class="fa-twitter"></i><i class="fa-twitter"></i></a></li>'."\n"; } if ($facebook) { $social_icons .= '<li class="facebook"><a href="'.$facebook.'" target="_blank"><i class="fa-facebook"></i><i class="fa-facebook"></i></a></li>'."\n"; } if ($dribbble) { $social_icons .= '<li class="dribbble"><a href="http://www.dribbble.com/'.$dribbble.'" target="_blank"><i class="fa-dribbble"></i><i class="fa-dribbble"></i></a></li>'."\n"; } if ($youtube) { $social_icons .= '<li class="youtube"><a href="'.$youtube.'" target="_blank"><i class="fa-youtube"></i><i class="fa-youtube"></i></a></li>'."\n"; } if ($vimeo) { $social_icons .= '<li class="vimeo"><a href="http://www.vimeo.com/'.$vimeo.'" target="_blank"><i class="fa-vimeo-square"></i><i class="fa-vimeo-square"></i></a></li>'."\n"; } if ($tumblr) { $social_icons .= '<li class="tumblr"><a href="http://'.$tumblr.'.tumblr.com/" target="_blank"><i class="fa-tumblr"></i><i class="fa-tumblr"></i></a></li>'."\n"; } if ($skype) { $social_icons .= '<li class="skype"><a href="skype:'.$skype.'" target="_blank"><i class="fa-skype"></i><i class="fa-skype"></i></a></li>'."\n"; } if ($linkedin) { $social_icons .= '<li class="linkedin"><a href="'.$linkedin.'" target="_blank"><i class="fa-linkedin"></i><i class="fa-linkedin"></i></a></li>'."\n"; } if ($googleplus) { $social_icons .= '<li class="googleplus"><a href="'.$googleplus.'" target="_blank"><i class="fa-google-plus"></i><i class="fa-google-plus"></i></a></li>'."\n"; } if ($flickr) { $social_icons .= '<li class="flickr"><a href="'.$flickr.'" target="_blank"><i class="fa-flickr"></i><i class="fa-flickr"></i></a></li>'."\n"; } if ($pinterest) { $social_icons .= '<li class="pinterest"><a href="http://www.pinterest.com/'.$pinterest.'/" target="_blank"><i class="fa-pinterest"></i><i class="fa-pinterest"></i></a></li>'."\n"; } if ($foursquare) { $social_icons .= '<li class="foursquare"><a href="'.$foursquare.'" target="_blank"><i class="fa-foursquare"></i><i class="fa-foursquare"></i></a></li>'."\n"; } if ($instagram) { $social_icons .= '<li class="instagram"><a href="http://instagram.com/'.$instagram.'" target="_blank"><i class="fa-instagram"></i><i class="fa-instagram"></i></a></li>'."\n"; } if ($github) { $social_icons .= '<li class="github"><a href="'.$github.'" target="_blank"><i class="fa-github"></i><i class="fa-github"></i></a></li>'."\n"; } if ($xing) { $social_icons .= '<li class="xing"><a href="'.$xing.'" target="_blank"><i class="fa-xing"></i><i class="fa-xing"></i></a></li>'."\n"; } if ($behance) { $social_icons .= '<li class="behance"><a href="'.$behance.'" target="_blank"><i class="fa-behance"></i><i class="fa-behance"></i></a></li>'."\n"; } if ($deviantart) { $social_icons .= '<li class="deviantart"><a href="'.$deviantart.'" target="_blank"><i class="fa-deviantart"></i><i class="fa-deviantart"></i></a></li>'."\n"; } if ($soundcloud) { $social_icons .= '<li class="soundcloud"><a href="'.$soundcloud.'" target="_blank"><i class="fa-soundcloud"></i><i class="fa-soundcloud"></i></a></li>'."\n"; } if ($rss) { $social_icons .= '<li class="rss"><a href="'.$rss.'" target="_blank"><i class="fa-rss"></i><i class="fa-rss"></i></a></li>'."\n"; } } else { $social_type = explode(',', $type); foreach ($social_type as $id) { if ($id == "twitter") { $social_icons .= '<li class="twitter"><a href="http://www.twitter.com/'.$twitter.'" target="_blank"><i class="fa-twitter"></i><i class="fa-twitter"></i></a></li>'."\n"; } if ($id == "facebook") { $social_icons .= '<li class="facebook"><a href="'.$facebook.'" target="_blank"><i class="fa-facebook"></i><i class="fa-facebook"></i></a></li>'."\n"; } if ($id == "dribbble") { $social_icons .= '<li class="dribbble"><a href="http://www.dribbble.com/'.$dribbble.'" target="_blank"><i class="fa-dribbble"></i><i class="fa-dribbble"></i></a></li>'."\n"; } if ($id == "youtube") { $social_icons .= '<li class="youtube"><a href="'.$youtube.'" target="_blank"><i class="fa-youtube"></i><i class="fa-youtube"></i></a></li>'."\n"; } if ($id == "vimeo") { $social_icons .= '<li class="vimeo"><a href="http://www.vimeo.com/'.$vimeo.'" target="_blank"><i class="fa-vimeo-square"></i><i class="fa-vimeo-square"></i></a></li>'."\n"; } if ($id == "tumblr") { $social_icons .= '<li class="tumblr"><a href="http://'.$tumblr.'.tumblr.com/" target="_blank"><i class="fa-tumblr"></i><i class="fa-tumblr"></i></a></li>'."\n"; } if ($id == "skype") { $social_icons .= '<li class="skype"><a href="skype:'.$skype.'" target="_blank"><i class="fa-skype"></i><i class="fa-skype"></i></a></li>'."\n"; } if ($id == "linkedin") { $social_icons .= '<li class="linkedin"><a href="'.$linkedin.'" target="_blank"><i class="fa-linkedin"></i><i class="fa-linkedin"></i></a></li>'."\n"; } if ($id == "googleplus" || $id == "google-plus" || $id == "google+") { $social_icons .= '<li class="googleplus"><a href="'.$googleplus.'" target="_blank"><i class="fa-google-plus"></i><i class="fa-google-plus"></i></a></li>'."\n"; } if ($id == "flickr") { $social_icons .= '<li class="flickr"><a href="'.$flickr.'" target="_blank"><i class="fa-flickr"></i><i class="fa-flickr"></i></a></li>'."\n"; } if ($id == "pinterest") { $social_icons .= '<li class="pinterest"><a href="http://www.pinterest.com/'.$pinterest.'/" target="_blank"><i class="fa-pinterest"></i><i class="fa-pinterest"></i></a></li>'."\n"; } if ($id == "foursquare") { $social_icons .= '<li class="foursquare"><a href="'.$foursquare.'" target="_blank"><i class="fa-foursquare"></i><i class="fa-foursquare"></i></a></li>'."\n"; } if ($id == "instagram") { $social_icons .= '<li class="instagram"><a href="http://instagram.com/'.$instagram.'" target="_blank"><i class="fa-instagram"></i><i class="fa-instagram"></i></a></li>'."\n"; } if ($id == "github") { $social_icons .= '<li class="github"><a href="'.$github.'" target="_blank"><i class="fa-github"></i><i class="fa-github"></i></a></li>'."\n"; } if ($id == "xing") { $social_icons .= '<li class="xing"><a href="'.$xing.'" target="_blank"><i class="fa-xing"></i><i class="fa-xing"></i></a></li>'."\n"; } if ($id == "behance") { $social_icons .= '<li class="behance"><a href="'.$behance.'" target="_blank"><i class="fa-behance"></i><i class="fa-behance"></i></a></li>'."\n"; } if ($id == "deviantart") { $social_icons .= '<li class="deviantart"><a href="'.$deviantart.'" target="_blank"><i class="fa-deviantart"></i><i class="fa-deviantart"></i></a></li>'."\n"; } if ($id == "soundcloud") { $social_icons .= '<li class="soundcloud"><a href="'.$soundcloud.'" target="_blank"><i class="fa-soundcloud"></i><i class="fa-soundcloud"></i></a></li>'."\n"; } if ($id == "rss") { $social_icons .= '<li class="rss"><a href="'.$rss.'" target="_blank"><i class="fa-rss"></i><i class="fa-rss"></i></a></li>'."\n"; } } } $social_icons .= '<li class="rss"><a href="https://app.appgree.com/" target="_blank"><img src="icon_image_path" height="16" width="16" /></a></li>'."\n"; $output = '<ul class="social-icons '.$size.' '.$style.'">'."\n"; $output .= $social_icons; $output .= '</ul>'."\n"; return $output; }
Thanks
MohammadOctober 19, 2015 at 5:38 pm #221696Hi,
About the translation plugin. The link you have sent us do not help the problem we are encountering.
We’ve used two plugins:
– Polylang: the plugin works well but when we try to use “Super Search Element” or “Search” element they don’t work.
– Qtranslatex: the plugin works well but only in “classic mode”. We want to use the page builder but if we save the page the theme only shows the last language update (we have 3).
Do you have any solution for one of them?
Thank you so much in advance.
October 19, 2015 at 5:53 pm #221699Hi,
The link Mohammad sent is about using WMPL or Poedit.
Did you tried Poedit and uploaded the generated .mo file?-Rui
October 21, 2015 at 4:35 pm #222286Hi,
I think you misunderstood our issue with the language translator.
We are having problems with the plugins polylang and qtranslatex to translate posts, pages, etc. when using the page builder of your theme.
To translate or generate a file .po or .mo there would not be a problem. The problem is with dynamic content as the plugins are not working.
WPML is a paid version and we have checked with Dante documentations and qtranslatex should be working.
Thanks in advance.
Regards,
October 22, 2015 at 7:17 am #222394Hi,
My colleague will assist you shortly.
Thanks
MohammadOctober 27, 2015 at 2:54 pm #223574Please, can we have an answer on this issue?
October 29, 2015 at 12:00 pm #224145Hi,
I am not overly familiar with qtranslatex, I would recommend you use WPML.
It seems there is a general issue with this plugin and page builders, ex: https://wordpress.org/support/topic/qtranslatex-and-visual-composer
Can you switch to WPML?
– David.
October 29, 2015 at 3:49 pm #224269Yes, we will then. Thank you.
October 29, 2015 at 3:49 pm #224270Ok. Thank you.
October 29, 2015 at 3:58 pm #224274No problem. Thanks David.
-Rui -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.