[SOLVED]Customising the opt-out iframe contents


Hello all,

I would like to change the background colour and font for the opt-out iframe, located at Settings>Privacy>Piwik opt-out for your visitors.

Can anybody tell me how to do this? A transparent bacground would be best, but if not I can set the BG colour to that of my site.

Thank you!

(Matthieu Aubry) #2

Hi Nick, please try to use this plugin to customise the iframe colors and CSS: http://plugins.piwik.org/CustomOptOut


[EDIT]: Sorry, I messed up the CSS but I have fixed it now!

Cool, thank you, Matt.

One problem is that it works in the preview that says:

“This code will display an Iframe containing a link for your visitors to opt-out of Piwik by setting an opt-out cookie in their browsers. Click here to view the content that will be displayed by the iFrame.”

But not on the site.

Here’s the CSS that I popped in the box:

body {
    font-family: "Lucida Sans Unicode";
	background-color: #0820D9;
    font-size: 12px;
	color: white

I guess that you can’t support all of the plugins but I don’t see a forum or anywhere else that I can ask questions about it so I thought it might be worth a try. Am I missing something obvious?


(Matthieu Aubry) #4

Go to: http://plugins.piwik.org/CustomOptOut
and click on the tab "Support"
It links to where you can ask developer for help. Cheers