Welcome, Guest
Username: Password: Remember me
Got a Joomla problem? Post as much detail about it as you can here to see if you can get a solution.

Help others in the community - post your Joomla tips and how-tos here.
  • Page:
  • 1


MijoShop Opencart site appears as a blank page in responsive emulator websites 5 years 1 month ago #7615

  • neilforrester
  • neilforrester's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 72
  • Thank you received: 10
Recently I was testing a Joomla MijoShop / OpenCart site in a responsive emulator website responsivedesignchecker.com/

Responsive Design Checker allows you to see how your site might look on various devices.

While checking my site I noticed that when the component area is a MijoShop / OpenCart page the website appeared blank in the Responsive Design Checker website.

Below is the reason why this happens and how to fix the issue so you can test your Mijoshop / openCart site for responsiveness. This issue may also occur in other components too.

The reason why OpenCart sites do not show in responsive emulators is because OpenCart has a built in feature that denies calls from an iframe proxy with the command X-Frame-Options SAMEORIGIN

This stops other sites displaying your OpenCart site in iFrames which is a good security step I guess.

To disable the X-Frame-Options SAMEORIGIN feature and test OpenCart sites in responsive emulators put this bit of code just after the closing </head> tag in your template index.php file.

<?php header('X-Frame-Options: GOFORIT'); ?>

Now, when you test your Mijoshop / OpenCart pages in responsive emulators you’ll be able to see your site.

Important: Don’t forget to remove the code once you’re done testing.

Source Information:

Neil Forrester

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum