cyberpunk Posted September 8, 2014 Share Posted September 8, 2014 Hello I have some HTML experience and I want to insert facebook plugin on the header if my webshop. I have a social plugin right now that I want to remove as well. Please take a look at this image Is the header separated and included in the firstpage? Where can I find the right files to alter? I know its somewhere in my custom theme folder. Any tips? Thank you! Link to comment Share on other sites More sharing options...
cyberpunk Posted September 8, 2014 Author Share Posted September 8, 2014 Update: I've been able to find the beginning of the body tag where I need to put the FB script. But I still don't know where to inside the div tag for the like button. Also I don't know what element to remove to get rid of the social plugin. Link to comment Share on other sites More sharing options...
cyberpunk Posted September 8, 2014 Author Share Posted September 8, 2014 I've been able to locate the header and specific .tpl file. I'm trying to alter it so that the facebook plugin is positioned to the right of the login buttin but with no success. This is the code: <!-- Block user information module HEADER --> <section class="blockuserinfo header-box"> {if $logged} <a href="{$link->getPageLink('index', true, NULL, "mylogout")}" title="{l s='Log out' mod='blockuserinfo'}" class="logout" rel="tooltip" data-placement="bottom" data-original-title="first tooltip"><span><i class="icon-unlock"></i></span></a> {else} <a href="{$link->getPageLink('my-account', true)}" title="{l s='Login' mod='blockuserinfo'}" class="login" rel="tooltip" data-placement="bottom" data-original-title="first tooltip" ><span><i class="icon-lock"></i></span></a> {/if} <div class="fb-like" data-href="#" data-width="0 " data-layout="box_count" data-action="like" data-show-faces="false" data-share="false" style="display: inline-block;"></div> </section> <section id="header_user" class="blockuserinfo-cart header-box"> {if !$PS_CATALOG_MODE} <div id="shopping_cart"> <a href="{$link->getPageLink($order_process, true)}" title="{l s='View my shopping cart' mod='blockuserinfo'}" rel="nofollow"> <i class="icon-shopping-cart"></i> <i class="opancart icon-double-angle-down"></i> <span class="shopping_cart_title">{l s='Cart' mod='blockuserinfo'}</span> <span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span> <!--span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{l s='Product' mod='blockuserinfo'}</span> <span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s='Products' mod='blockuserinfo'}</span--> {*<span class="price ajax_cart_total{if $cart_qties == 0} hidden{/if}"> {if $cart_qties > 0} {if $priceDisplay == 1} {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} {convertPrice price=$cart->getOrderTotal(false, $blockuser_cart_flag)} {else} {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} {convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)} {/if} {/if} </span>*} <span class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s='(empty)' mod='blockuserinfo'}</span> </a> </div> {/if} </section> I've added the facebook div as well. Where should I position it? Link to comment Share on other sites More sharing options...
cyberpunk Posted September 8, 2014 Author Share Posted September 8, 2014 Update! I managed to add the likebox. Just need to remove the socialplugin Link to comment Share on other sites More sharing options...
vekia Posted September 9, 2014 Share Posted September 9, 2014 it's probably some module in your store. go to modules > modules and search for "facebook", it should be there! 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