This topic has 6 replies, 2 voices, and was last updated 8 years, 3 months ago ago by Eva Kemp
Hi,
I’ve installed the Skate one page demo. I can’t find how to remove certain social media icons and set the links for the ones I want to remain.
I’ve looked in static blocks but there’s nothing obvious there.
Thanks.
Hello,
You need edit the file wp-content/themes/royal/framework/shortcodes.php (find the section “! Share This Product” in line 1918), to change links you need edit the code, for example for Twitter <a href="https://twitter.com/share?url='.$permalink.'&text='.$post_title.'" class="'.$tooltip_class.'" title="'.__('Twitter', ETHEME_DOMAIN).'" target="_blank">
and replace https://twitter.com/share?url='.$permalink.'&text='.$post_title.'
with a link to your Twitter account.
Also remove or comment the code for icons you don’t need.
Regards,
Eva Kemp.
Thanks Eva. Is it possible to add an Instagram icon at all?
Hello,
To add Instagram icon you need add this code after line 2010 in the same shortcodes.php file:
if($instagram == 1) {
$html .= '
<li>
<a href="http://url_to_your_Instagram_page" class="'.$tooltip_class.'" title="'.__('Instagram', ET_DOMAIN).'" target="_blank">
<i class="ico-instagram"></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>
';
}
and
'instagram' => 1
after line 1927.
Regards,
Eva Kemp.
That’s great, thanks Eva.
Hello,
You’re welcome.
Regards,
Eva Kemp.
The issue related to '‘Social media icons’' has been successfully resolved, and the topic is now closed for further responses