Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Trying to put Facebook button on header

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-05-2014, 11:59 AM
 
Milly4554 Milly4554 is offline
 

Advanced Member
  
Join Date: Feb 2014
Posts: 75
 

Default Trying to put Facebook button on header

I'm trying to put a link to our facebook page in the header of our home page...
we are using the responsive template

I have inserted this into the
File: /skin/common_files/customer/home.tpl after ...

<div id="page-container"{if $page_container_class} class="{$page_container_class}"{/if}>
<div id="page-container2">
<div id="content-container">
<div id="content-container2">
<a href="https://www.facebook.com/kjbeautystore"><img src="http://kjbeautystore.com/skin/common_files/modules/Socialize/images/facebook.png" width="28px" height="28px" alt="Facebook Link" /></a>

Which I found in another post ,but nothing seems to happen ...

I am referencing the facebook .png which is @ the bottom of the page ..

Thanks Gene
__________________
http://kjbeautystore.com/

X CART Gold v 4.6.6
CDSEO Pro 2.0 w/Rich Snippets
Reboot Responsive Template
alteredCart On-Sale Module
alteredCart Call For Price Plus
Reply With Quote
  #2  
Old 05-05-2014, 12:46 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Trying to put Facebook button on header

Ideal Responsive has it's own version of customer/home.tpl, try altering the one in the skin template folder:
skin/ideal_responsive/customer/home.tpl
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
Milly4554 (05-05-2014)
  #3  
Old 05-05-2014, 01:01 PM
 
Milly4554 Milly4554 is offline
 

Advanced Member
  
Join Date: Feb 2014
Posts: 75
 

Default Re: Trying to put Facebook button on header

Hi Mike , Thanks for the suggestion ,I tried that and tried putting in a iframe from facebook....

<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fkjbeautystore.com%2F&am p;width=50&amp;layout=button&amp;action=like&amp;s how_faces=false&amp;share=true&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:35px;" allowTransparency="true">
</iframe>

But no luck .....
__________________
http://kjbeautystore.com/

X CART Gold v 4.6.6
CDSEO Pro 2.0 w/Rich Snippets
Reboot Responsive Template
alteredCart On-Sale Module
alteredCart Call For Price Plus
Reply With Quote
  #4  
Old 05-08-2014, 11:06 AM
 
Milly4554 Milly4554 is offline
 

Advanced Member
  
Join Date: Feb 2014
Posts: 75
 

Default Re: Trying to put Facebook button on header

Well I have finally added a link to our facebook page on the home page thanks to an old post by Steve from CFL Systems and taking Mikes advice , sometimes you just have to mess around ...

I went to facebook and they have a link generator there for a like button, added the java script to: skin/ideal_responsive/customer/home.tpl

and then added their code to: skin/ideal_responsive/customer/head.tpl

This is where I had put the face book button ....

<div class="line2">
{if ($main ne 'cart' or $cart_empty) and $main ne 'checkout'}

{include file="customer/search.tpl"}

{include file="customer/language_selector.tpl"}

{/if}
***Face Book Code***
<div class="fb-like" data-href="http://kjbeautystore.com/" data-width="38" data-layout="button" data-action="like" data-show-faces="false" data-share="true">
</div>
***Steves Code***
<a href="https://www.facebook.com/kjbeautystore"><img src="http://kjbeautystore.com/skin/common_files/modules/Socialize/images/facebook.png" width="38px" height="38px" align="right" alt="Facebook Link" /> </a>
________
</div>

{include file="customer/noscript.tpl"}

Everything works but ....

I need to move the face book buttons over to the right , and make them taller (thicker) I tried ... data-height="38" and... data-align="right" HELP !!!
check it out ... http://kjbeautystore.com/

I just haven't gotten to that chapter in my HTML5 for Dummies yet !!!

Thanks Gene
__________________
http://kjbeautystore.com/

X CART Gold v 4.6.6
CDSEO Pro 2.0 w/Rich Snippets
Reboot Responsive Template
alteredCart On-Sale Module
alteredCart Call For Price Plus
Reply With Quote
  #5  
Old 05-08-2014, 11:12 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Trying to put Facebook button on header

Gene,
Try putting this into your CSS:
Code:
div.fb-like.fb_iframe_widget { position: absolute; top: -109px; right: 0px; }
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following 2 users thank totaltec for this useful post:
Milly4554 (05-08-2014), qualiteam (05-12-2014)
  #6  
Old 05-08-2014, 11:44 AM
 
Milly4554 Milly4554 is offline
 

Advanced Member
  
Join Date: Feb 2014
Posts: 75
 

Default Re: Trying to put Facebook button on header

Thanks Mike ...

You made my DAY !!!!

I see your going to be at the Beer Meeting , I wish I could be there , I would enjoy shaking your hand and personally thank you for all your help!!!

Gene
__________________
http://kjbeautystore.com/

X CART Gold v 4.6.6
CDSEO Pro 2.0 w/Rich Snippets
Reboot Responsive Template
alteredCart On-Sale Module
alteredCart Call For Price Plus
Reply With Quote

The following user thanks Milly4554 for this useful post:
totaltec (05-08-2014)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:55 AM.

   

 
X-Cart forums © 2001-2020