• Resolved jhmnieuwenhuis

    (@jhmnieuwenhuis)


    Hi,
    When analyzing by PageSpeed Insights i got a remark on the use of minimum-scale=1.0 and maximum-scale=1.0.
    I disabled this for now by using a php snippet :

    add_action(‘wp_head’, function() {
    ob_start(function($html) {
    return str_replace(
    ‘minimum-scale=1.0, maximum-scale=1.0’,
    ”,
    $html
    );
    });
    }, 0);

    add_action(‘wp_head’, function() {
    ob_end_flush();
    }, 999);

    Can it be disabled in the next release ?

    I love this plugin. Use it for my personal website on the nature in the east of the Netherlands.
    So i started sponsering with $3 / month today.



Viewing 1 replies (of 1 total)
  • Plugin Author Joe

    (@morehawes)

    Hi @jhmnieuwenhuis,

    I am very glad to hear that you like Waymark 🙂 Your sponsorship means a lot, thank you!

    Looking at your request, I believe the content you are referring to is part of the viewport meta element which belongs in the page <head>. This controls how browsers can change the view, like zoom.

    This would normally be included as part of your theme. Waymark does not interact with this, so this isn’t something I can directly help you with.

    I was curious though, so I had a quick look and it seems that this is a potential accessibility issue flagged by Insights. While I have not used this plugin personally, they claim to “Make the viewport scalable”, so that may be something worth looking in to.

    If it is added by your theme, but you don’t want to modify it directly, you could consider creating a child theme, which is a very easy way to override the parent theme without modifying it directly.

    I hope this helps. Do let me know if I misunderstood anything.

    Thanks again for the sponsorship!

    Joe

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.