• We are experiencing an issue with the “Login with Vipps” plugin where the image in the Vipps button is not displaying as expected. Do you have any suggestions on how to resolve this?

    Best regards

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Iver Odin Kvello

    (@iverok)

    Yes, sort of: You seem to have a plugin or something in your theme that replaces the “src” attribute of your images with “data-trx-lazyload-src”. Presumably this is supposed to be handled by some javascript when the user views the image, but unfortunately this isn’t loaded or doesn’t work on your login page in particular.

    You will need to disable this feature on the login page in particular if possible.

    You can probably also do the lazy-loading manually sort of, by adding a snippet like this to your child-themes functions.php:

    add_action('login_header', function () {
    echo "<script>jQuery(document).ready(function () {
    let trx = jQuery('a.vipps-button img').data('trx-lazyload-src');
    if (trx) jQuery('a.vipps-button img').attr('src', trx);
    }); </script>";
    });

    — but that’s just a workaround; it’s better if you can disable the lazy-loading feature on this page.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.