damian5000 Posted September 27, 2013 Share Posted September 27, 2013 (edited) How to add Google+ rel="publisher" link to default social block? I just want to add this underneath the facebook link. Which module to edit? Would be lovely if social block allowed a Google+ Publisher link default... Edited September 27, 2013 by damian5000 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted September 27, 2013 Share Posted September 27, 2013 modules/blocksocial/blocksocial.tpl you can do everything there Link to comment Share on other sites More sharing options...
damian5000 Posted September 27, 2013 Author Share Posted September 27, 2013 Okay, I did like this: <ul> <li><a href="https://plus.google.com/11728430771993036####/" rel="publisher">Find us on Google+</a></li> {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} </ul> But it's messing up the entire footer area and not showing the link as well. Guess I"m missing something. I also tried it with class="rss", but same result. Any ideas? Link to comment Share on other sites More sharing options...
vekia Posted September 27, 2013 Share Posted September 27, 2013 it's because you have to define css styles for your new <li> element. probably. But it's messing up.... can you show how it looks like? or share url if it is possible. it's hard to say what's going on without an access to website Link to comment Share on other sites More sharing options...
damian5000 Posted September 27, 2013 Author Share Posted September 27, 2013 (edited) Actually, I just changed it back to default, cleared the cache as well, but it's still all messed up. It was fine prior to editing the social.tpl... hmmm Edited September 27, 2013 by damian5000 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted September 27, 2013 Share Posted September 27, 2013 it's not related to block social module. it's related to the module position under modules > positions tab you've got module: category block before the "reassurance" module. this is causing problem Link to comment Share on other sites More sharing options...
damian5000 Posted September 27, 2013 Author Share Posted September 27, 2013 (edited) Okay, yes, you're right. It must have got moved when I was moving contentbox.... Back to the initial problem, I've also tried sticking it in there with the facebook class, but still not showing up. What's interesting is even if I duplicate the exact line for facebook, it still only shows facebook once. I wonder if this is something to do with the way social.php is coded.... <li class="facebook"><a href="https://plus.google.com/1172843077199303654##/">{l s='Google Plus' mod='blocksocial'}</a></li> Edited September 27, 2013 by damian5000 (see edit history) Link to comment Share on other sites More sharing options...
damian5000 Posted September 27, 2013 Author Share Posted September 27, 2013 Done for now. I spent 2 hours on this issue. No matter what I try to add to social.tpl, it refuses to show. Anyone has the solution to add Google + to social block... = great. Link to comment Share on other sites More sharing options...
vekia Posted September 27, 2013 Share Posted September 27, 2013 there are 2 possibilities: 1) you need to turn force compilation ON and cache OFF under adv. parameters > performance 2) make sure that this file doesn't exist in themes/YOUR_THEME/blocksocial/blocksocial.tpl - if it exists there - you have to edit this file Link to comment Share on other sites More sharing options...
Recommended Posts