| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Trying to put Facebook button on header | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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 |
|||||||
#2
|
|||||||||
|
|||||||||
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. |
|||||||||
|
#3
|
|||||||
|
|||||||
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&layout=button&action=like&s how_faces=false&share=true&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 |
|||||||
#4
|
|||||||
|
|||||||
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 |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Trying to put Facebook button on header
Gene,
Try putting this into your CSS: Code:
__________________
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. |
|||||||||
#6
|
|||||||
|
|||||||
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 |
|||||||
|
|
|||
X-Cart forums © 2001-2020
|