Hi lantaca,
There are many possible causes.
The JavaScript looks error-free so far.
In the admin area -> Plugins -> BBCode, the option “Use HTML with BBCode” must be enabled.
In the editor, you need to wrap it in the BBCode HTML tag.
Code: Select all
[html]<script>!function(d,l,e,s,c){e=d.createElement("script");e.src="//ad.altervista.org/js.ad/size=300X250/?ref="+encodeURIComponent(l.hostname+l.pathname)+"&r="+Date.now();s=d.scripts;c=d.currentScript||s[s.length-1];c.parentNode.insertBefore(e,c)}(document,location)</script>[/html]
If the JavaScript is supposed to load content from “external sources”, you’ll need to enable “Allow unsafe JavaScript” and “Allow embedding of external content via iFrame” in the admin area -> Configuration -> FlatPress Protect.
Then the ad banner should work.
If the ad banner still isn’t displaying, disable DNS filters (e.g., PiHole, AdGuard) and browser extensions such as uBlock.
Best regards,
Frank