0

I am using the bootstrap modal popup to show some content on site on click. First time when I click a link the modal popup works fine, but when I clear my browser cache and click on again on the same link the modal popup does not work.

It only shows the black background.

  • did you get any errors in console? would be great if you can share screenshot. – Ashish Viradiya Feb 7 at 6:16
  • There is no such error, it works after a refresh but when I clear the browser cache it does not work. – abdul wadood Feb 7 at 9:13
  • Without code review it can't be solved. – Ashish Viradiya Feb 7 at 9:32
0
  1. open in incognito window magento clean/flush cache and static
  2. content deploy. click inspect element in browser - set as
  3. display:block in css edit block. try another browser.
  4. If all do not help you, look at your code, mb you have an error. Why it is working before? Because css cached as well by browser and magento.

After that run below command line:

 php bin/magento cache:flush 
 php bin/magento cache:clean
 php bin/magento setup:static-content deploy -f en_US
 php bin/magento setup:di:compile
  • I don't think its a CSS issue. "in" class for modal is not being added when I click on the link for the first time after clearing browser cache. – abdul wadood Feb 6 at 14:26
  • Without code i can't help you to fix it – alexey boltynov Feb 7 at 6:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.