Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1328753
    Jack D
    Participant

    I am trying to add the new face book plugin to http://www.protectiondogsuk.co.uk. I am sending the code generated by Facebook by private message I have added the first part to my child theme functions.php but cannot seem to get the second part to show the Facebook header.

    #1328755
    Jack D
    Participant
    This reply has been marked as private.
    #1329041
    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in! The code you added in your child theme’s functions.php is not correct, replace your code with this:

    add_action('wp_head','facebook_code');
    function facebook_code() { 
    ?>
    	<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_GB/sdk.js#xfbml=1&version=v2.8&appId=228854317562898";
    		fjs.parentNode.insertBefore(js, fjs);
    		}(document, 'script', 'facebook-jssdk'));
    	</script>
    <?php 
    }

    Let us know how this goes!

    #1329102
    Jack D
    Participant

    I have added the code and also step 3 onto a page but I’m afraid it does not work

    #1329536
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! To assist you better with this issue, would you mind providing us the url of the page in question with login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – Link to your site

    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thank you.

    #1329688
    Jack D
    Participant
    This reply has been marked as private.
    #1329714
    Rad
    Moderator

    Hi there,

    May I know where the Step 3 is added? Or where should it appear? I can’t find it, I’m not sure if it’s added or not. It’s an embed code and should be added in the page content.

    Thanks!

    #1329720
    Jack D
    Participant

    I added it but it did not work so I took it off. You can add it to the bottom of the home page using Cornerstone. This is what I did but it did not work

    Regards

    Jack

    #1329731
    Rue Nel
    Moderator
    This reply has been marked as private.
    #1329744
    Jack D
    Participant

    Perfect! Many thanks

    #1329749
    Thai
    Moderator

    If you need anything else please let us know.

  • <script> jQuery(function($){ $("#no-reply-1328753 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>