cspaul Posted August 14, 2013 Share Posted August 14, 2013 (edited) Hi When clicking on facebook icon in the social networking block, it opens in the same window. How do i make it open in new window ? i tried adding target="_blank" to the URL. Can someone tell me please ? Edited August 15, 2013 by cspaul (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 14, 2013 Share Posted August 14, 2013 can you please show the website, where the button is? you use default template? + are you sure that you changed correct file? i mean, that sometimes this file is also located in the themes directory: themes/yourtheme/modules/blocksocial/blocksocial.tpl if it exist there, you have to edit this one. Link to comment Share on other sites More sharing options...
cspaul Posted August 14, 2013 Author Share Posted August 14, 2013 Thanks for your reply The website is http://onlineshop.graceindianspices.in/ The facebook icon is under follow us at the bottom of the page Link to comment Share on other sites More sharing options...
vekia Posted August 14, 2013 Share Posted August 14, 2013 thanks this is how your code looks like: as you can see there is no target="_blank" so make sure that you changed correct file (i described it in my post above) + run store under the "force compilation" mode Link to comment Share on other sites More sharing options...
cspaul Posted August 14, 2013 Author Share Posted August 14, 2013 I believe that I have changed the code as you said. It still opens in the same window. Also I checked the Store runs under "force compilation" mode Link to comment Share on other sites More sharing options...
vekia Posted August 14, 2013 Share Posted August 14, 2013 okay, so what about cache? you've got it ON ? if so, turn it off for the test purposes Link to comment Share on other sites More sharing options...
cspaul Posted August 14, 2013 Author Share Posted August 14, 2013 I had the cache OFF while making the changes. I turned it ON after making the changes. Now once again I have turned it OFF. Link to comment Share on other sites More sharing options...
vekia Posted August 14, 2013 Share Posted August 14, 2013 really weird that changes aren't visible. can you, for test purposes, remove the contents of this file ? Link to comment Share on other sites More sharing options...
cspaul Posted August 14, 2013 Author Share Posted August 14, 2013 When I right click the link and go to inspect element the change seems to have been made. Now I have removed the URL from the social networking block. Now after refreshing the page, I find the facebook Icon has been removed Link to comment Share on other sites More sharing options...
vekia Posted August 14, 2013 Share Posted August 14, 2013 really weird. can you show the contents of your .tpl file? Link to comment Share on other sites More sharing options...
cspaul Posted August 14, 2013 Author Share Posted August 14, 2013 I sincerely thank you and appreciate the way you are trying to help me. At this point I must tell you that I am not a technical person and I don't know where to look for the .tpl file. Do guide me. Link to comment Share on other sites More sharing options...
vekia Posted August 14, 2013 Share Posted August 14, 2013 i just want to check the whole contents of the file you changed Link to comment Share on other sites More sharing options...
PascalVG Posted August 14, 2013 Share Posted August 14, 2013 csPaul, Go to your host and login Open cPanel Open File manager application go to your shop root folder go to /themes/default/modules/blocksocial/blocksocial.tpl contents should be something like this. I made the changes so see if you can add it in the same spot: <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'}" target="_blank">{l s='Facebook' mod='blocksocial'}</a></li>{/if} {if $twitter_url != ''}<li class="twitter"><a href="{$twitter_url|escape:html:'UTF-8'}" target="_blank">{l s='Twitter' mod='blocksocial'}</a></li>{/if} {if $rss_url != ''}<li class="rss"><a href="{$rss_url|escape:html:'UTF-8'}" target="_blank">{l s='RSS' mod='blocksocial'}</a></li>{/if} </ul> </div> Hope this helps, pascal 1 Link to comment Share on other sites More sharing options...
PascalVG Posted August 14, 2013 Share Posted August 14, 2013 N.B. Adding the target="_blank" to the URL in Back office, as you said you tried, unfortunately doesn't work. Needs to be made in the file itself. See previous post how to. pascal 1 Link to comment Share on other sites More sharing options...
cspaul Posted August 15, 2013 Author Share Posted August 15, 2013 It works !! THANK YOU. THANK YOU SO MUCH. Link to comment Share on other sites More sharing options...
PascalVG Posted August 15, 2013 Share Posted August 15, 2013 Of course it does... Glad I could help! Happy selling, pascal 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now