• Home
  • Showcase
    • Newspaper Showcase
    • Newsmag Showcase
  • Support
    • Newspaper Forum
    • Newsmag Forum
    • Blog
    • Documentation
      • Newspaper Documentation
      • Newsmag Documentation
      • The Theme API
    • What’s New
      • Newspaper
        • What’s New in v 11.5
        • What’s New in v 11.4.3
        • What’s New in v 11.4
        • What’s New in v 11.2
        • What’s New in v 11
        • What’s New in v 10.4
        • What’s New in v 10.3.7
        • What’s New in v 10.3.2
        • What’s New in v 10.3
        • What’s New in v 10
      • Changelog
        • Newspaper
        • Newsmag
        • tagDiv Opt-In Builder
  • Services
    • Web Development Services
    • Web Solutions & CMS Development
    • Web design & Front-end Development
    • E-Commerce Development Services
    • Page Speed Optimization Services
  • Buy Newspaper
Search
tagDiv support
  • Become a member
  • Sign in
  • Home
  • Showcase
    • Newspaper Showcase
    • Newsmag Showcase
  • Support
    • Newspaper Forum
    • Newsmag Forum
    • Blog
    • Documentation
      • Newspaper Documentation
      • Newsmag Documentation
      • The Theme API
    • What’s New
      • Newspaper
        • What’s New in v 11.5
        • What’s New in v 11.4.3
        • What’s New in v 11.4
        • What’s New in v 11.2
        • What’s New in v 11
        • What’s New in v 10.4
        • What’s New in v 10.3.7
        • What’s New in v 10.3.2
        • What’s New in v 10.3
        • What’s New in v 10
      • Changelog
        • Newspaper
        • Newsmag
        • tagDiv Opt-In Builder
  • Services
    • Web Development Services
    • Web Solutions & CMS Development
    • Web design & Front-end Development
    • E-Commerce Development Services
    • Page Speed Optimization Services
  • Buy Newspaper

This forum is now closed to new posts

All existing content remains available to browse and search. For support, please email us at contact@tagdiv.com Our team is happy to help as soon as possible.

Home Newspaper Facebook Mobile comments

Facebook Mobile comments

Posted in: Newspaper
Post count: 66
Incrosnatu
#130890
Aug 31, 2016 at 1:20 pm

Buna ziua TagDiv!

Am urmatorul site: http://www.sociedelic.com si as dori sa adaug comentarii si pe mobil.

Pentru partea desktop fisierul comments.php a fost modificat, adica sters tot continutul si adaugat doar asta:

<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_US/sdk.js#xfbml=1&version=v2.4&appId=898431453537286″;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>
<div class=”fb-comments” data-href=”<?php the_permalink(); ?>” data-width=”100%” data-numposts=”10″ data-order-by=”social” data-colorscheme=”light”></div>

Este in regula? Iar pentru mobil, as dori sa fiu indrumat de voi, ce trebuie sa modific/adaug. Am gasit niste raspunsuri dintr-un search dar nu inteleg ce trebuie sa modific.

Post count: 23312
Catalin
#130940
Aug 31, 2016 at 4:11 pm

Salut Incrosnatu,

Banuiesc ca vrei sa implementezi Facebook Comments pe Mobile Theme, nu? Tot ce trebuie sa faci este sa introduci codul de Java Script in header.php si pe urma in single.php inainte de get_footer() trebuie sa pui o alta conditie asa cum este in acesta captura de ecran, aici -> http://screencast.com/t/RkXH3FXXiWJv si aici -> http://screencast.com/t/lb3QhADMh Practic pentru versiunea de desktop trebuie sa adaugi exact acelasi cod doar in fisierele din main team. Pentru mai multe referinte in acest caz, poti sa consulti acest topic -> https://forum.tagdiv.com/topic/anybody-implemented-fb-comments/

Sper sa te ajute aceste sfaturi!

O zi faina in continuare!

Post count: 66
Incrosnatu
#131143
Sep 1, 2016 at 11:45 am

Am reusit, multumesc frumos!

Post count: 34
Fatih
#206284
Dec 9, 2017 at 10:06 pm

Hi,

I try this on my child theme. I did it on desktop version but i didn’t it on mobile theme. I did Catalin’s steps as same. Can you help me ?

Thanks,

Post count: 23312
Catalin
#206465
Dec 11, 2017 at 1:18 pm

Hello Fatih,

Most likely, this implementation does not work for child theme and that’s why you bring nothing. Please check the child theme support here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks for the message!

Post count: 66
Incrosnatu
#261553
Nov 10, 2018 at 9:11 pm

Salutare! Observ ca nu-mi mai apar comentariile facebook, probabil de la update-ul temei. Am urmat exact aceeasi pasi pentru implementarea codurilor.

Post count: 23312
Catalin
#261715
Nov 12, 2018 at 1:35 pm

Hello Incrosnatu,

Unfortunately, please notice that custom implementation was lost when you have updated the theme to the latest version of it. You need to customize again that section but please notice that we cannot provide any support for this. This is additional customization!

Thanks for your understanding!

Post count: 66
Incrosnatu
#262191
Nov 15, 2018 at 12:35 am

I know that, i did it the same thing as before but didn’t worked now. I’m really sure that it’s easy for you, I just need to know what file I need to modify exactly, because i can’t find anything and other plugins don’t seems to work with custom template. I use Single Post Template 31, and I tried this tutorial but i don’t know what file i need to modify.
https://forum.tagdiv.com/topic/facebook-comments-2/

  • This reply was modified 7 years by Incrosnatu.
Post count: 66
Incrosnatu
#262193
Nov 15, 2018 at 12:51 am

If edit the template and i add to page the element “Single Post Comment” and after that appear wordpress comments not facebook comments. And comments.php is edited with this:


<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 = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2&appId=******&autoLogAppEvents=1';
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-comments" data-href="" data-width="100%" data-numposts="10" data-order-by="social" data-colorscheme="light" data-include-parent="true"></div>

  • This reply was modified 7 years by Incrosnatu.
Post count: 20688
Simion C.
#262278
Nov 15, 2018 at 2:16 pm

Hi,

So you want to add Facebook comments on mobile when using the mobile theme. The above should work same as before, there were’t any changes made to the mobile theme.

When using the mobile theme it will not matter what post template is used for desktop. There will be one predefined post template used for all the posts
– http://www.screencast.com/t/RkXH3FXXiWJv

To display Facebook comments in the cloud templates would not be possible, these don’t have php files in which you can add the code, like for default post templates.

Post count: 66
Incrosnatu
#262906
Nov 19, 2018 at 11:39 pm

It is possible with this plugin. Works great with cloud templates and mobile also.
https://wordpress.org/plugins/gs-facebook-comments/

Viewing 11 posts - 1 through 11 (of 11 total)
The forum ‘Newspaper’ is closed to new topics and replies.
Incrosnatu
Support Hours (GMT+2)

Monday - Friday:
8:00 AM - 17:00 PM

Documentation
  • Newspaper
  • Newsmag
Facebook Instagram Twitter Youtube
Welcome to the Community! This is our main Support Center and, also the place where you can make new friends, people just as passionate about websites as you are. Don’t hesitate to ask for help as we are here for you. Thank you for buying our products!
Contact us: contact@tagdiv.com
  • Home
  • Blog
  • Forums
  • About us
  • Support policy
  • Privacy Policy
© tagdiv.com | Proudly made with by tagDiv. All rights reserved
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-advertisement1 yearThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement".
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
_ga2 yearsThis cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors.
_gat_gtag_UA_43963494_11 minuteThis cookie is set by Google and is used to distinguish users.
_gid1 dayThis cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
CookieDurationDescription
IDE1 year 24 daysUsed by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile.
test_cookie15 minutesThis cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE5 months 27 daysThis cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website.
YSCsessionThis cookies is set by Youtube and is used to track the views of embedded videos.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
CookieDurationDescription
CONSENT16 years 5 months 26 days 13 hours 25 minutesNo description
yt-remote-connected-devicesneverThis cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video.
yt-remote-device-idneverThis cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video.
SAVE & ACCEPT
Powered by CookieYes Logo