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.

3
  • did you get any errors in console? would be great if you can share screenshot. Feb 7, 2019 at 6:16
  • There is no such error, it works after a refresh but when I clear the browser cache it does not work. Feb 7, 2019 at 9:13
  • Without code review it can't be solved. Feb 7, 2019 at 9:32

1 Answer 1

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
2
  • 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. Feb 6, 2019 at 14:26
  • Without code i can't help you to fix it Feb 7, 2019 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.