-
Hello. As per the title I have a simple piece of code – an embedded Eventbrite checkout – that works just fine when I add it as a Custom HTML block in a Post. When I add the same code inside an Element (Content Template) it doesn’t work at all, doesn’t Preview and the console shows a remote 404. It’s the exact same code! The Element pulls in other information from ACF, could that be the problem in some way?
Been a while since I’ve gotten this stuck on something! -
I have supplied login details in the other ticket I have open if at all useful – see private information.
-
Hi there,
It’s likely because the HTML only works in post or page’s content area, while GP element is a custom post type.
Can you check with the code supplier and ask how to get the permission for the code to work in custom post type? Element’s slug is
gp_elements. -
Ah, of course, had forgotten that Elements are CPTs. I’d assumed that because there is
<script>stuff in the HTML that it was getting sanitised. As for asking Eventbrite – how responsive do we think they’ll be to a charity that just uses them for free ticket booking? Ha. -
So what else can we help with?
-
Please don’t take that the wrong way, wasn’t having a pop at you or GB! Just saying I doubt I’d get much of a response from Eventbrite.
-
I believe most plugins that are well-maintained would offer support at WP’s support forum 🙂 So give it a try!
- You must be logged in to reply to this topic.