开发者

Remove Facebook Like button from Contact Page on Blogger

开发者 https://www.devze.com 2023-03-18 15:09 出处:网络
I just added a like button to my blogger, first it didn\'t work, but now it does,but it shows on all the pages I created on blogger Including the Contact Page http://scheissemag.blogspot.com/p/contact

I just added a like button to my blogger, first it didn't work, but now it does,but it shows on all the pages I created on blogger Including the Contact Page http://scheissemag.blogspot.com/p/contact.html, which bothers me and I want to hide it or remove the div. For the button code I use this one : (which I installed after <div class='post-footer-line post-footer-line2'/> )

    <div>
<div id='fb-root'/>
<script>
    (function() {
    var e = document.createElement(&#39;script&#39;);
    e.src = document.location.protocol + &#39;//connect.facebook.net/fr_FR/all.js#xfbml=1&#39;;
    e.async = true;
    document.getElementById(&#39;fb-root&#39;).appendChild(e);
    }());

        </script>
        <fb:like action='like' colorscheme='light' expr:href='data:post.url' font='arial' layout='standard' send='false' show_faces='false'/> </div>

I tried to remove with the code I found in this website after searching :

<div id="fr-root"> (I tired LikeDiv too)
    my div
</div>
<script>
    {
        // Remove the element from the dom
        var Node1 = document.getElementById('likeDiv');
        Node1.removeChild(Node1.开发者_开发知识库childNodes[0]);
    }
</script>

But it's always there !


Instead of removing it, can you just set its visible property to FALSE?

0

精彩评论

暂无评论...
验证码 换一张
取 消