Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Custom HTML works in Post but not in Element

  • 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!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.