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
I want to add a snippet of Javascript to my posts that will display an Adsense ad.
When I do this using the HTML button, it puts <p> tags around it.
Hi,
You can try to override the TinyMCE config ( https://getpublii.com/dev/how-to-add-custom-config-or-js-for-post-editor/ ) like described here: https://stackoverflow.com/questions/17376595/how-can-i-remove-p-tags-that-are-auto-added-within-tinymce but I am not sure if it won’t break adding paragraphs to the normal text fragments.