Social Icons - by Libardo - on WordPress WooCommerce support

This topic has 25 replies, 3 voices, and was last updated 8 years, 9 months ago ago by Eva Kemp

  • Avatar: Eva
    Eva Kemp
    Support staff
    April 24, 2015 at 21:05

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

    Avatar: Libardo
    Libardo
    Participant
    July 20, 2015 at 19:34

    Hi Eva,

    I believe after we done the Theme update the social icons were also updated and the links where eliminated.

    http://i1340.photobucket.com/albums/o728/LibardoBarreto/SOCIAL_zpsh8w1jnuv.png

    Can you add to the Child Theme folder the necessary CSS codes for the following:

    Facebook needs to link to : https://www.facebook.com/CuracaoBKB

    Twitter needs to link to :https://twitter.com/bkbcuracao

    Youtube needs to link to : https://www.youtube.com/channel/UCQdfUZZx3mOKWCjH0yRBKzg

    Google Plus needs to link to : https://plus.google.com/b/111868212816836744092/111868212816836744092/videos?pageId=111868212816836744092

    E-Mail needs to link to : http://bkbcuracao.com/contact-us/

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    July 21, 2015 at 09:24

    Hello,

    I’ve added this code in functions.php of the child theme:

    function remove_parent_functions() {
    remove_shortcode('share', 'etheme_share_shortcode');
    add_shortcode('share', 'etheme_share_shortcode_child');
    } 
    
    add_action('init','remove_parent_functions');
    
    function etheme_share_shortcode_child($atts, $content = null) {
    extract(shortcode_atts(array(
    		'title'  => '',
    		'text' => '',
    		'tooltip' => 1,
    		'class' => ''
    	), $atts));
    	global $post;
    	if(!isset($post->ID)) return;
        $html = '';
    	$permalink = get_permalink($post->ID);
    	$tooltip_class = '';
    	if($tooltip) {
    		$tooltip_class = 'title-toolip';
    	}
    	$image =  etheme_get_image( get_post_thumbnail_id($post->ID), 150,150,false);
    	$post_title = rawurlencode(get_the_title($post->ID)); 
    	if($title) $html .= '<span class="share-title hidden-xs">'.$title.'</span>';
    	$html .= '
    		<ul class="menu-social-icons '.$class.'">
    			<li>
    				<a href="https://www.linkedin.com/company/bottelier-kitchen-&-bath-n-v-" class="'.$tooltip_class.'" title="'.__('LinkedIn', ETHEME_DOMAIN).'" target="_blank">
    					<i class="ico-linkedin"></i>
    					<svg width="38" height="38" xmlns="http://www.w3.org/2000/svg" class="circle">
    							<circle cx="19" cy="19" r="18" fill="rgba(255,255,255,0)" stroke="#000000"></circle>
    					</svg>
    				</a>
    			</li>
    
                   <li>
                        <a href="https://twitter.com/bkbcuracao" class="'.$tooltip_class.'" title="'.__('Twitter', ET_DOMAIN).'" target="_blank">
                            <i class="ico-twitter"></i>
                            <svg width="38" height="38" xmlns="http://www.w3.org/2000/svg" class="circle">
                                    <circle cx="19" cy="19" r="18" fill="rgba(255,255,255,0)" stroke="#000000"></circle>
                            </svg>
                        </a>
                    </li>
       
       			<li>
    				<a href="https://www.facebook.com/CuracaoBKB" class="'.$tooltip_class.'" title="'.__('Facebook', ETHEME_DOMAIN).'" target="_blank">			
    				<i class="ico-facebook"></i>					
    				<svg width="38" height="38" xmlns="http://www.w3.org/2000/svg" class="circle">							
    				<circle cx="19" cy="19" r="18" fill="rgba(255,255,255,0)" stroke="#000000"></circle>
    					</svg>
    				</a>
    			</li>
    			<li>
    				<a href="https://www.youtube.com/CuracaoBKB" class="'.$tooltip_class.'" title="'.__('Youtube', ETHEME_DOMAIN).'" target="_blank">					
    				<i class="ico-youtube"></i>					
    				<svg width="38" height="38" xmlns="http://www.w3.org/2000/svg" class="circle">							
    				<circle cx="19" cy="19" r="18" fill="rgba(255,255,255,0)" stroke="#000000"></circle>
    					</svg>
    				</a>
    			</li>
    			<li>
    				<a href="mailto:eugene@bkbcuracao.com?subject=Welcome To Beyond Kitchen and Bath &body=Check%20this%20out:%20'.$permalink.'" class="'.$tooltip_class.'" title="'.__('Mail To Friend', ETHEME_DOMAIN).'" target="_blank">
    					<i class="ico-envelope"></i>
    					<svg width="38" height="38" xmlns="http://www.w3.org/2000/svg" class="circle">
    							<circle cx="19" cy="19" r="18" fill="rgba(255,255,255,0)" stroke="#000000"></circle>
    					</svg>
    				</a>
    			</li>
    		</ul>
    	';
    	return $html;
    }

    Please check share icons now.

    Regards,
    Eva Kemp.

    Avatar: Libardo
    Libardo
    Participant
    July 21, 2015 at 13:40

    Thanks Eva … and welcome back :D:D:D:D fiewww

    I will check and let you know.

    Avatar: Eva
    Eva Kemp
    Support staff
    July 21, 2015 at 15:48

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • 1 2
    Viewing 25 results - 21 through 25 (of 25 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.