Archived topic
Niche display issues
8 replies · Started by Shelby on November 6, 2020
When viewing a product I am presented with PHP code rather than what should properly display https://shelby.d.pr/2K7uCk any ideas?
Thanks!
Also wanted to add it seems to work fine on mobile but not on full screen.
Hi there,
That's super strange.
Any chance you can disable all plugins except WooCommerce and link us to the page in question?
Thanks :)
Hey Leo!
Have actually already done that and still get the same error. It’s really strange that it works in mobile but not desktop.
Thanks,
Shelby
Yeah that makes no sense at all.
Can you link me to the page in question with everything disabled except WooCommerce?
And make sure you are using the parent theme as well.
Sending a Private Message
Hi there,
The Niche site uses a couple of Hook Elements that adds PHP to your site.
They can be found in Appearance > Elements.
The fact the PHP is showing is because PHP in the editor is DISALLOWed.
You can override this just for the Hook elements - this document explains:
https://docs.generatepress.com/article/generate_hooks_execute_php/
Thanks David that resolved it!
Glad to hear that!