• Resolved viorel80

    (@viorel80)


    Hi,I have a problem with Include only these images, Custom CSS .class for image. When I put a custom css class the lightbox will not open anymore. Whitout css class everything works perfectly. I use Divi theme, whith chrome inspector in console I have this error image-projector.min.js?ver=1571501584:5 Uncaught TypeError: Cannot read property ‘toLowerCase’ of undefine. I put a css class in every image which I wanted to use your plugin functionality( css class with .mycssclass ). I really appreciate your work for this plugin. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter viorel80

    (@viorel80)

    Hi, for all themes integrated with page builder, like Divi in my case you have to translate the css class. Example : . myclass img to .myclass.
    ?n Divi theme if you put a custom class to single image module, Divi adds img at the end, like .myclass img, you can not put that in the plugin admin, because will not be recognized. The solutions its a jQuery script, you can put this script ?n page like an html module or you can put this ?n global script section ?n Divi, or other page builder.

    <script>
    jQuery(‘.myclass img’).addClass(‘.myclass’);</script>

    Done.

    Plugin Author wpgloe

    (@wpgloe)

    Hi, sorry for attending to this so late.

    Thank you for the effort put down with this, i will have a look and see what can be done in the code.

    Christian

    Plugin Author wpgloe

    (@wpgloe)

    Hi again – is it possible for you to give me a link to your web page where the startup fails? It could be interesting to see the markup around the image when page is built by by DIVI. Also if you have a place where you let it fail and guide me to that place I can debug directly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom CSS .class for image not working’ is closed to new replies.