Jump to content

[SOLVED] How to add Google + to social networking block?


Recommended Posts

nizoralshop . com

 

As a side note, my theme is with social network square design. I have an unfortunate problem with my computer and I can't edit sprite png social block file to add google plus, as I don't have photoshop anymore.

 

Could somebody add the google plus icon in a file for me? I'd really appreciate that. Here's the current file:

 

 

post-632518-0-57243900-1382029489_thumb.png

Link to comment
Share on other sites

Vekia,

 

I tried to edit the sprite file adding the missing icon and expanding the image height from 150px to 200px. However, as you can see in the homepage (see link in the previous post), the G+ icon is only displayed in the third row (instead of rss icon, which I moved to the last position in the image file), but the RSS flux link is still at the same position, and there's no G+ link.

 

What am i missing?

Link to comment
Share on other sites

use these styles for rss:

.blocksocial li.rss a {
background: url(http://www.nizoralshop.com/themes/theme686/css/../img/sprite_pict_social_block.png) no-repeat 0 -171px;
padding: 6px 0 0 40px;
height: 40px;
}

and add google css styles:

.blocksocial .google a {
background: url(http://www.nizoralshop.com/themes/theme686/css/../img/sprite_pict_social_block.png) no-repeat 0 -121px;
padding: 6px 0 0 40px;
height: 40px;
}

then in module tpl file add this line:

<li class="google"><a href="http://urltogoogle.com">google</a></li>

effect:
eac2yfx.png

Link to comment
Share on other sites

False alert!

 

But for the module tpl, which one are you talking about because there are many block social.tpl? Yesterday, I edited /modules/blocksocial/blocksocial.tpl as followed:

 

 

 
<div id="social_block">
	<h4 class="title_block">{l s='Follow us' mod='blocksocial'}</h4>
	<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 $googleplus_url != ''}<li class="googleplus"><a href="{$googleplus_url|escape:html:'UTF-8'}">{l s='Google+' 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>
</div>
Link to comment
Share on other sites

follow my guides and add code that i suggested to the correct place in your store. I don't know where you've got this module so you have to find it first

 

i think about 3 possibilities:

 

1) themes/modules/blocksocial/

2) modules/blocksocial/

3) themes/footer.tpl


ccc for css files is still turned on

Link to comment
Share on other sites

your styles that you defined doesnt work

take a look how the url looks like:

.blocksocial li.rss a {
background: url(http://www.nizoralshop.com/themes/theme686/css/http://www.nizoralshop.com/themes/theme686/css/../img/sprite_pict_social_block.png) no-repeat 0 -171px;
padding: 6px 0 0 40px;
height: 40px;
}

this is your url to image: http://www.nizoralshop.com/themes/theme686/css/http://www.nizoralshop.com/themes/theme686/css/../img/sprite_pict_social_block.png

 

 

the same for new google icon.

Link to comment
Share on other sites

×
×
  • Create New...