Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Dante
  • #238478
    stoneslade
    Member
    Post count: 33

    I loved your Flexform theme and just recently found Dante and love it even more… one thing I’m not finding is the social link option for the customer review site Yelp. This is on the flexform theme. Am I just not finding it or is there a way to add it? Unfortunately Yelp is widely used in most of the US and is important for small businesses.

    #238555
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please add this custom code at functions.php of child theme. I have commented a line in code to insert your yelp profile url.

    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";
    					}
    				}
    			}
    //JUST_INSERT_YOUR_URL_HERE
    $social_icons .= '<li class="yelp"><a href="JUST_INSERT_YOUR_URL_HERE" target="_blank"><i class="fa-yelp"></i><i class="fa-yelp"></i></a></li>'."\n";
    			
    			$output = '<ul class="social-icons '.$size.' '.$style.'">'."\n";
    			$output .= $social_icons;
    			$output .= '</ul>'."\n";
    			
    			return $output;
    		}

    Thanks
    Mohammad

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register