Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need responsive Matomo opt-out iframe please #14209

Closed
CDUCI opened this issue Mar 15, 2019 · 4 comments
Closed

Need responsive Matomo opt-out iframe please #14209

CDUCI opened this issue Mar 15, 2019 · 4 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@CDUCI
Copy link

CDUCI commented Mar 15, 2019

In the bottom of the web page at www.ucicl.uci.edu the opt-out iframe is not responsive.

I set the width at 1200px to look better. It doesn't look great at 600px on any screen. And it doesn't center the text. Looks awkward.

Any suggestions please? Thank you!

@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Mar 16, 2019
@tsteur
Copy link
Member

tsteur commented Mar 16, 2019

You could set the styles of the iframe to something like <iframe .... style="... ;width: 100%;max-width:1200px;">.

If you wanted to center the text, there is a plugin that allows you to further customise it: https://plugins.matomo.org/CustomOptOut

@tsteur tsteur closed this as completed Mar 16, 2019
@CDUCI
Copy link
Author

CDUCI commented Mar 18, 2019

Thank you for responding so quickly. Clarification please. We are using the Cloud version so it's not installed in our web server. Will this plugin work?

@tsteur
Copy link
Member

tsteur commented Mar 19, 2019

It won't be available on the cloud. I suggest for any cloud related questions you get in touch with our support: support at matomo.cloud

I suggest you change the <iframe style="border: 0; height: 100px; width: 1200px;" to <iframe style="border: 0;height: 120px;width: 100%;max-width:1200px;" and I noticed you also need to update the element above from <div class="row"> to <div class="col-12"> otherwise it cannot get the full width. You nested before a row within a row instead of making it a column.

should look like this:
image

and then you maybe don't need to center the text.

@CDUCI
Copy link
Author

CDUCI commented Mar 19, 2019

Thank you so much!! I made the 2 changes (iframe and col-12) as you suggested and the responsiveness is perfect. Very much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants