Joomla Cookie Consent extension

Create your Cookie Consent plugin
Screenshots
Add a cookie banner to your Joomla website
Tell visitors your website uses cookies with a banner that appears as soon as they enter a page. Write your own text, link to your usage policy and place buttons that ask visitors for approval.
Show the banner as a bar or a responsive box, and recolor the buttons and the link to match your website style. It is translated into all widespread European languages.
Display it on any page or on all pages of your website, whichever you need.
Key features of the Joomla Cookie Consent
Everything you need to ask for cookie consent on your website:
- Your own message – write the notification text with formatting and links.
- Cookie policy link – show or hide it and set your own link text.
- Bar or Box – choose a bar or a responsive box layout.
- Consent buttons – ask visitors for approval and recolor the buttons and the link to match your website style.
- European languages – the widget is translated into all widespread European languages.
- Pages of your choice – show the notification on any page or on all pages; it appears once a visitor enters the page.
How to add Cookie Consent to Joomla
Build your widget in the free Elfsight editor, customize its message and appearance, then copy the installation code.
Good to know: These instructions follow Elfsight’s Joomla 4 guide. Choose installation on all pages to display Cookie Consent throughout your website.
Method 1: Add Cookie Consent to all pages
- Go to System → Site Templates in Joomla Admin.
- Select your active template and open index.php.
- Paste the complete installation code before </body>.
- Click Save and check your published website.
Method 2: Add Cookie Consent to a specific page
- Go to System → Site Templates and select your active template.
- Open index.php.
- Paste the first line of your installation code before </body> and save.
- Go to Content → Articles and open the relevant article.
- Click More → Source Code.
- Paste the second line of your installation code.
- Click OK, save the article, and check the published page.
Method 3: Add Cookie Consent through template settings
- If index.php has no body tag, look in your template settings for a custom code field such as Before </body>.
- Paste the complete installation code to display the widget on all pages.
- For a specific page, insert only the first line here, then follow Method 2 from step 4.
- Save and check your website.
Our support team can help you install the widget on your website.