- This topic has 8 replies, 2 voices, and was last updated 10 years ago by
isabella.
-
AuthorPosts
-
March 15, 2016 at 7:59 pm #87552
isabella
Participanthi,
please, i’d like to have the facebook “Page Plugin” on featured post 1 in home page,
instead of image and text,
How can i do?
thank you!
have a nice day
IsabellaMarch 16, 2016 at 11:56 am #87589Mahesh
Participant@isabella: For that, you’ll need to create child theme. You can find more details on creating child theme HERE. Then in your child theme’s functions.php, find and add the code from the following link. Then you’ll be able to add shortcode to display facebook page plugin in any one of content section of Featured Content.
http://bit.ly/1RNkOT8Regards,
MaheshMarch 24, 2016 at 3:43 pm #88154isabella
ParticipantThank you Mahesh,
i’ve tried but unfortunately didn’t work,
i create child theme, downloading this: http://catchthemes.com/wp-content/uploads/2014/05/catch-everest-pro-child1.zip
so, in my folder:
folder catch-everest-pro-child
in the file functions.php
i add the code you suggest me in this page:
http://pastebin.com/kmjYinbmso I activate the child theme, but the only thing has changed was the logo web site, that i have to reload.
In the content section in “featured content home page” i not see any changes;
And, in the page that i linked you
https://developers.facebook.com/docs/plugins/page-plugin
there are two codes that needed to be add,1. Include the SDK JavaScript on your page once, ideally right after the opening <body> tag.
<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/it_IT/sdk.js#xfbml=1&version=v2.5″;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>2. position the code in your page where you like to show the plugin
<div class=”fb-page” data-href=”https://www.facebook.com/facebook” data-tabs=”timeline” data-small-header=”false” data-adapt-container-width=”true” data-hide-cover=”false” data-show-facepile=”true”><div class=”fb-xfbml-parse-ignore”></div></div>
my web site address is:
admofvg.itthank you for your assistance,
IsabellaMarch 24, 2016 at 4:05 pm #88158Mahesh
Participant@isabella: Sorry, I thought you were trying to use the Facebook Page Plugin for WordPress, but you are trying to use the facebook’s own page plugin. This the not possible with the above method. You’ll need to hire a customizer for this.
Regards,
MaheshMarch 24, 2016 at 4:08 pm #88162isabella
ParticipantoK,
that kind of Facebook Page Plugin for WordPress i can use?March 24, 2016 at 4:17 pm #88167Mahesh
Participant@isabella: If you want to display certain facebook page in your site (in featured content) as you’ve mentioned earlier you can use this plugin and you have to follow the above steps.
Regards,
MaheshMarch 24, 2016 at 4:22 pm #88168isabella
Participantthank you, the name of the plug in is: “Facebook Page Plugin”?
https://it.wordpress.org/plugins/facebook-page-feed-graph-api/but, as i create the child theme, nothing has changed on the content section of “Featured Content”. How we can check if i done the changes in the correct way?
thank you
IsabellaMarch 24, 2016 at 4:38 pm #88172Mahesh
Participant@isabella: I guess you’ve followed all the instructions above ( i.e. creating child theme, putting codes in
functions.phpetc ). After installing and activating the mentioned plugin, go to Admin Dashboard, you’ll see Facebook Page Plugin Shortcode Generator section at the bottom. Fill up the form and a shortcode will be generated. Copy the generate shortcode and go to “Dashboard=> Appearance=> Customize=> Homepage Settings=> Homepage Featured Content Options”, then page it in Content within Featured Content # and click save. Then go to front page, you’ll see the facebook page div in featured content section.Regards,
MaheshMarch 24, 2016 at 5:52 pm #88177isabella
Participantbig thank you Mahesh!
everything works now,
thanks for the fast support.
have a nice day
isabella -
AuthorPosts
- The topic ‘facebook in featured post in home page’ is closed to new replies.
