Intuitive, expansive and flexible creation with no distractions.
Robust, user-friendly data protection for your visitors and you.
Modern, effective solutions for site growth and functionality.
Professionally designed and coded themes and plugins.
Free and premium, beautifully-designed templates.
Expand your site with your favorite tools and apps.
Get help building your site from our web development services.
Learn how Publii works, from installation to creation.
Documentation, guides, and tutorials for developers.
Explore and interact with others and learn new things.
Dedicated customer support for paid products.
Read up on the latest news about Publii and its products.
Forum › General Inquiry
Hello! I’m trying to add code for comments from Facebook but it doesn’t work.
Where do I have to add the code to work for each page separately?
Thanks …
Tools -> Custom HTML -> check if you have tab “After every post” – if yes, you can put there facebook comments code 🙂
How to change the url address to display correctly for each post?
Example:
<script async defer crossorigin=”anonymous” src=”https://connect.facebook.net/bg_BG/sdk.js#xfbml=1&version=v8.0″ nonce=”XuZ6N5rN”></script>
I suppose that the only way is create script tag dynamically and use window.location to get a proper URL
e.g:
var scr = document.createElement(‘script’); scr.setAttribute(‘src’, window.location.href + ‘/test.js’); document.body.appendChild(scr);