U365U365 MemberComments: 67 Received thanks: 2 Member since: November 2015 edited December 2015
Hello community, :shopware:

I am facing little problem right here. :(
So, i tried to add facebook page on newsletter/hotline place.
I Followed http://8mylez.com/blog/facebook-box-footer/
files inside "themes>frontend>mytheme>frontend>index" are "index.tpl" and "footer-navigation.tpl"

I compiled theme and cleared cashe.

Changes are not appealing on footer. :wtf:

Looking for advice
Best regards :thumbup:

Comments

  • ShopwareianerShopwareianer MemberComments: 3624 Received thanks: 646 Member since: November 2013
    Do you have any errors in your chrome dev tools console?
    Does the <div> appears in the footer?

    Do you have a link to your website?
    Thanked by 1U365
  • U365U365 MemberComments: 67 Received thanks: 2 Member since: November 2015
    Okay, i managed to fix that myself.

    @kayyyy thank you for trying to help. :)

    I just played around with code a little, got it working in the first colum.

    footer-navigtion.tpl
    {extends file="parent:frontend/index/footer-navigation.tpl"}
    
    {block name="frontend_index_footer_column_service_hotline"}
        <div class="footer--column column--hotline is--first block">
    <div class="column--headline">Finde uns auf Facebook</div>
    		{block name="frontend_index_footer_column_service_hotline_content"}
    <div class="column--content">
    <div class="fb-page" 
      data-href="https://www.facebook.com/facebook";
      data-width="300" 
      data-hide-cover="false"
      data-show-facepile="false" 
      data-show-posts="false">
    </div>
    		{/block}
    </div>
        </div>
    {/block}
    
    index.tpl
    {extends file="parent:frontend/index/index.tpl"}
    
    {block name='frontend_index_after_body' append}
      <div id="fb-root"></div>
      <script>(function(d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); js.id = id;
        js.src = "//connect.facebook.net/de_DE/sdk.js#xfbml=1&version=v2.5&appId=562882437145097";
        fjs.parentNode.insertBefore(js, fjs);
      }(document, 'script', 'facebook-jssdk'));</script>
    {/block}
    
    here the code, if someone needs.
Sign In or Register to comment.