Archived topic
niche site template broken
3 replies · Started by Rafique on November 22, 2020
Hi,
I just purchased the pro version just to install the 'niche' site template. But looks like the shop/product page is broken.
https://pasteboard.co/JBDHyDr.png
Any ideas?
- Disappointed
Hi there,
Niche uses a couple of Hook Elements that use PHP.
That 'error' is because your server config is set to DISALLOW FILE EDITING ( more info here )
The simplest fix is to enable PHP Editing in the GP Hooks by adding this PHP Snippet to your site:
add_filter( 'generate_hooks_execute_php', '__return_true' );
https://docs.generatepress.com/article/generate_hooks_execute_php/
Adding PHP:
https://docs.generatepress.com/article/adding-php/
Sorry to raise an old thread from the grave but it was exactly my issue except I also wanted to add it to the main page. I forgot to click "execute PHP" on the new element. The PHP snippet posted above worked perfectly.
Glad to hear you found the solution you needed!