Jump to content

{SOLVED} Adding Social Links (Pinterest, Etc)


Guest

Recommended Posts

Hey guys!

 

Was trying to add links to the social module block, not having any luck hardcoding the links into blocksocial.cms, any suggestions? Do I have to modify the module?

 

Thanks :)

Edited by Guest (see edit history)
Link to comment
Share on other sites

Hey guys!

 

Was trying to add links to the social module block, not having any luck hardcoding the links into blocksocial.cms, any suggestions? Do I have to modify the module?

 

Thanks :)

 

I believe you'd have to modify the blocksocialmodule and its associate .css and .tpl files to add Pinterest and/or any other social media profile icons and url links as seen on others Prestashop online shops.

Link to comment
Share on other sites

Ahhh! I edited that block but made a simple error and my ahref links were not showing up! My fault! I thought I had to edit the module for that reason.

 

Thanks for setting me straight!

 

For anyone looking to add links via hardcoding blocksocial.tpl here my code.

 

 

<div id="social_block">
<p class="title_block">{l s='Follow us' mod='blocksocial'}</p>
<ul>
 {if $facebook_url != ''}<li class="facebook"><a href="{$facebook_url|escape:html:'UTF-8'}">{l s='Facebook' mod='blocksocial'}</a></li>{/if}
 {if $twitter_url != ''}<li class="twitter"><a href="{$twitter_url|escape:html:'UTF-8'}">{l s='Twitter' mod='blocksocial'}</a></li>{/if}
 {if $rss_url != ''}<li class="rss"><a href="{$rss_url|escape:html:'UTF-8'}">{l s='RSS' mod='blocksocial'}</a></li>{/if}
 <li class="pinterest"><a href="#">Pinterest</a></li>
 <li class="instragram"><a href="#">Instragram</a></li>
 <li class="vimeo"><a href="#">Vimeo</a></li>
</ul>
</div>

Link to comment
Share on other sites

Hey vekia.

 

You can see how it is looking at:

 

www[dot]anewall[dot]com

 

username: stack

password: overflow

 

Pretty basic setup thus far! I think it looks clean though!

Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...