Archived topic
Add page code to all pages
21 replies · Started by Charles on March 10, 2021
So how it goes following the instruction? :)
Have you managed installing GP Premium plugin successfully?
OK, so I tried it with the block approach but it's the same outcome.
This part, which is an accordion block from a plugin, doesn’t seem to work through the hook:
<!– wp:ub/content-toggle-block {“blockID”:”101e7bad-8fc6-4017-beb0-5109294ee5ef”,”theme”:”#abb8c3″,”titleColor”:”#000000″,”border”:false} –>
<!– wp:ub/content-toggle-panel-block {“parentID”:”101e7bad-8fc6-4017-beb0-5109294ee5ef”,”theme”:”#abb8c3″,”collapsed”:true,”titleColor”:”#000000″,”panelTitle”:”\u003cstrong\u003eView All Sections\u003c/strong\u003e”,”titleTag”:”h2″,”border”:false} –>
The code works correctly on this page
https://gconntest1.wpengine.com/test2/
But not when it’s added through the hook on this page:
https://gconntest1.wpengine.com
Thanks.
What David meant is you could use block element to build the layout instead of using the code.
Are the 2 pages sharing the same hook with your code?
The block seems to be fine in a regular page but does not work when it is placed in the hook. Does that make sense?
I believe this is the issue:
https://docs.generatepress.com/article/block-element-overview/#third-party-block-plugins
OK, makes sense. I'll try another way!
No problem :)