Site logo

Archived topic

How to insert a container within a post

20 replies · Started by robchanoi on March 29, 2022

Viewing posts 16–21 of 21

Thanks - pls see code area.

I’m getting an error when copying and pasting the HTML code: https://share.getcloudapp.com/X6uE9Xp2

The uniqueID in your HTML seems to be missing. Using the classic editor may have caused this.

Here’s an example of a valid code from my test website:

<!-- wp:generateblocks/container {"uniqueId":"a759a875","isDynamic":true,"blockVersion":2} -->
<!-- wp:generateblocks/headline {"uniqueId":"39936a35"} -->
<h2 class="gb-headline gb-headline-39936a35 gb-headline-text">Test h2</h2>
<!-- /wp:generateblocks/headline -->
<!-- /wp:generateblocks/container -->

Try removing the Container Blocks code and see how it goes. Example: https://share.getcloudapp.com/KouAZKop

"Going forward, I’d suggest sticking to just 1 editor (ideally go with Gutenberg) as switching between 2 editors can cause problems as David mentioned."

If you’re experiencing a different issue, can you share a specific example of it? (a screen recording and/or screenshot)

Reference to screenshots: https://docs.generatepress.com/article/using-the-premium-support-forum/#uploading-screenshots

Hope to hear from you soon. :)

Thanks - that's fixed it.
I still want to use GB as it's great - albeit a bit of a mission doing say a 3k word post if you're choosing a separate block per paragraph etc - are you saying ditch CG for Gutenberg?

You’re welcome! Glad it’s working now.

You’re correct. To avoid issues like the one experienced, it would be best to use the Gutenberg Block Editor solely.

Hope this clarifies. :)

Ah - ok, need both though. Thanks for your help Ferando.

You’re welcome Robchanoi! Feel free to reach out anytime you’ll need assistance with anything else. :)

This archived topic is closed to new replies.