Zeichen32 / PiwikCustomOptOut

Create your own piwik opt-out iframe css styles
GNU General Public License v3.0
25 stars 10 forks source link

Works neither with Custom CSS nor with extrenal CSS file #56

Closed electricarts closed 5 years ago

electricarts commented 5 years ago

No matter what I enter under Custom CSS or if I place the CSS instructions in an external CSS file and use the link: The iFrame code under the input fields does not change and only shows the "normal" values. What am I doing wrong? screenshot 2018-12-08 at 12 05 12

Zeichen32 commented 5 years ago

You need to use the url displayed at the bottom. At the privacy page on your website, you miss the idSite parameter, so piwik cannot identify which css styles should be load.

This is the correct url: https://analyse.hellmann-genuss.de/index.php?module=CoreAdminHome&action=optOut&language=de&backgroundColor=&fontColor=&fontSize=&fontFamily=&idSite=1

electricarts commented 5 years ago

Ok. I thought that some inline styles for the CSS instructions could be found in the URL. I have now used the URL below with the idSite parameter in my privacy statement. This doesn't change the fact that neither the font size nor the font color is adjusted.

Zeichen32 commented 5 years ago

Look at your iframe source code, the inline style is correct injected:

image

electricarts commented 5 years ago

I know. Nevertheless, the wrong font is displayed in the frontend. And I don't know why.

screenshot 2018-12-08 at 12 49 40

Zeichen32 commented 5 years ago

You need to inject the Google Web Fonts in the iFrame Code. iFrames are handled as a complete separated website. I will close this issue, since this is a css problem and not an bug with this plugin.