WordPress.org

Forums

Ultimate TinyMCE
QR code (5 posts)

  1. davidebabylonia
    Member
    Posted 1 year ago #

    hello,

    How to avoid QR code to be rendered on mobile user agents?

    I have installed the wptouch on my Blog

    Thank you!

    https://wordpress.org/plugins/ultimate-tinymce/

  2. Josh (WP Edit)
    Moderator and Editor Customizer
    Plugin Author

    Posted 1 year ago #

    That's a very good question. I haven't been asked this before.

    Hmmm... I would guess the best way is to target the css via your stylesheet. You can say something like... "if you are mobile... do not load the qr div element".

    I think it would look something like this:

    /* Hide Ultimate Tinymce QR Codes for mobile agents */
    @media screen and (max-device-width: 480px) {
        .jwl_qr_code { display: none; }
    }

    That basically says if the width of the device is maxed at 480px... it won't display the widget. You can experiment with that value.

  3. davidebabylonia
    Member
    Posted 1 year ago #

    I have tried this code but there is no changes, do you need any other info? Isn't it possible to exclude by generic user agent list?

  4. Josh (WP Edit)
    Moderator and Editor Customizer
    Plugin Author

    Posted 1 year ago #

    Okay, I'll have to ask my mobile guy how this can be done.

    Please follow up with me in 24 hours, if I have not posted back by then.

    Thanks.

  5. davidebabylonia
    Member
    Posted 1 year ago #

    Hello Josh,

    Any news?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ultimate TinyMCE
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.