Answered

Make the popup from images disappear after you click on image

Hello, i wanted to know how does the popup of image upload or gallery hides when you click on a image, (like on the ui/layout composer), because right now when i click on a image it just stays in front of the product. I would like to know the method to make the popup disappear after you choose a image.


Best regards

  • For everyone that needs add this line to your index.php on the java script part:


    yourDesigner.$container.on('elementAdd', function() { 

        $('div.fpd-close-dialog span.fpd-icon-close').trigger('click'); 

  • I tried this but I get this error no matter where I put the code



    Parse error: syntax error, unexpected '(', expecting variable (T_VARIABLE) or '$' in /home/XXXXXXXX/public_html/xxxxxxxxxxxxxxx.com/index.php on line 17

Login or Signup to post a comment