• Resolved Starhorsepax2

    (@starhorsepax2)


    We have a site that also uses Paid Membership Pro, and in this case, it uses an add on called Membership Card. When you click the link to print the card loses the images. The only thing that fixes it is disabling Smush. Turning off lazy load or exempting that file didn’t seem to help. Do you have any suggestions?
    I know it must be some kind of plugin conflict. If one hits ‘Control P’ on the page, the card shows properly.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hi @starhorsepax2

    It seems the setting that can affect the image could be the lazy load. Could you please check the following recommendations?

    Deactivate Lazy Load and clear the site cache. It is possible the settings for lazy load are still saved in the page after disabling the plugin. Clearing cache will make sure the new settings are updated for the image.

    If the previous step doesn’t solve the problem, also try a conflict test to determine if Smush alone is causing the issue. Create a full backup of the site , test deactivating all plugins except the membership related ones and Smush and then check if you still have issues with the image. If the issue is not present anymore, start activating the plugins one by one until you identify the one conflicting with Smush Pro.

    Let know the results you get from these recommended steps.

    Kind regards

    Luis

    Thread Starter Starhorsepax2

    (@starhorsepax2)

    I tested on a clone site with everything else but membership and smush off, even caching. Turning off smush completely works. A total deactivation of Lazy Load works, as does just turning it off on pages. But trying to disable it on just the particular page in question does not work. Does this mean we can’t use lazy load on pages at all?

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @starhorsepax2

    Thanks for response!

    Disabling Lazy Load for just specific page(s) should also work most likely (if I correctly understand the case) but it’s possible that there’s some additional aspect of how this given page works which “breaks exclusion” or the exclusion is not done correctly.

    Can you tell us what exactly did you try excluding (what string did you put in “Post, Pages & URLs” box in exclusion settings)?

    Could you also share a link to the page in question so we could take a closer look?

    Kind regards,
    Adam

    Thread Starter Starhorsepax2

    (@starhorsepax2)

    Unfortunately, you have to login to reach the page. I tried putting the complete url for the /members page in there but that didn’t work. I do know that it’s using javascript:window.print() to call the print thing, it’s a shortcode on the page that puts the card in there and it is calling its own stylesheet inside that.

    So I assume something there must be some specific url in the add on itself that I’d need to exempt. No idea what though.

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hi @starhorsepax2

    Hope you are doing well!

    There are 2 ways you can try to exclude the image:

    1. Using an id or class:
      Please access these exclude options by accessing Smush Pro > Lazy Load > Include/Exclude > Classes and ID’s, then add any id or class that is specific for the image. Please check the following image as a reference:
      https://snipboard.io/I2SvRF.jpg
      More info can be found in our documentation below:
      https://wpmudev.com/docs/wpmu-dev-plugins/smush/#post-pages-urls-classes-and-ids
    2. Using a MU-Plugin:

    Just replace the image url in the code below to exclude from lazy loading :

    add_filter('smush_skip_image_from_lazy_load', function( $skip, $src, $image ){
    //compare the $src here and return true to skip
    if ( ! $skip && 'https://yoursite.com/my-image.jpg' === $src ) {
    $skip = true;
    }
    return $skip;
    }, 99, 3);


    You can add the above code as a mu-plugin. Please check this link on how to implement the above code as a mu-plugins: https://premium.wpmudev.org/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    More info about excluding images from lazy load can be accessed here: https://wpmudev.com/docs/wpmu-dev-plugins/smush/#exclude-single-image-lazy-loading.

    Hope this information helps.

    Kind regards

    Luis

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @starhorsepax2

    I hope you are doing well and safe!

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    Feel free to let us know if you have any additional questions or problems.

    Best Regards
    Patrick Freitas

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plugin Conflict on ‘print’’ is closed to new replies.