Block cookies for each active Joomla! language separately by using the CPNB tags

Some times you need to load some scripts for each language separately. It happens often with Facebook pixel. Here is the solution for this situation!

Copy and paste the below PHP code example in your index.php of your current template "/templates/your_current_template\index.php", before the </body></html>.
Inside the <script></script> tags enter the JavaScript code for each active language separately. Do not forget to replace the "el-GR" or "en-GB" language tags with your active languages.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us