Archived topic
Can you..... create an element/hook to be placed within a container of a page
4 replies · Started by Sarah on March 16, 2023
Not sure this is possible or whether I should .. but can I create a Element > Hook - that contains PHP if/else code with JS - and get that code to display and run within a container of a page - like if that page had a grid 50:50 and I wanted the results of that PHP to appear in the left hand grid?
Is that possible with GP and Elements? Ie can you really target not just a page but something within that page?
Thanks
Sarah
Hi Sarah,
That's possible, but it depends on the output of the code.
You can give it a try.
Thank you Ying - is there any documentation for GP that points in the right direction of the element targetting something within a page at all? I have looked but not found anything?
Ignore that I finally found "portable hooks" and am giving those a try - thank you!
Let us know whether it works :)