Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,
    can you provide an example of the code you put in your widget ?

    Thread Starter smarius28

    (@smarius28)

    Hello,
    Yes. This is the code: <div class=”fb-like” data-href=”https://comemorariqr.ro/mihaibrezeanu&#8221; data-layout=”standard” data-action=”like” data-show-faces=”true” data-share=”true”></div>

    Where did you put it?
    The thing is that I cannot see it at all among the footer widgets. That html isn’t rendered, and I cannot reproduce this.

    Anyway consider that that code all alone will not do anything you need to add the javascript code too (something like this):

    add_action ('wp_head' , 'add_fb_button_script');
    function add_fb_button_script() {
    	?>
    		<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/en_EN/all.js#xfbml=1&appId=YOUR-APP-ID";
    		  fjs.parentNode.insertBefore(js, fjs);
    		}(document, 'script', 'facebook-jssdk'));
    		</script>
    	<?php
    }

    (in your child-theme functions.php)

    Thread Starter smarius28

    (@smarius28)

    Thank you verry much ! You save my life :))))) It works ! Thank you 1000 time d4z_c0nf !!!!!

    Glad to hear that!
    You’re welcome ??

    p.s.
    would you mind marking this topic as resolved?
    Thanks ??

    Thread Starter smarius28

    (@smarius28)

    In my excitement, I forgot to mark the post as solved. Thanks again!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Facebook share button dont't show in footer widget’ is closed to new replies.