Site logo

Archived topic

How to copy a container from one page to another?

7 replies · Started by Josef on August 6, 2021

Viewing posts 1–8 of 8

I tried to copy containers from one page to another, but I could not. Please tell me how it can be done?
This is how I tried:
1. Select the container on the old page
2. Select edit as html
3. Highlight and copy all the html coe to the clipboard
4. Select a container on the new page
5. Insert new block (container)
6. Select edit as html
7. Insert the html ode from the clipboard
8. Back to visual edit
Result error message: The block contains unexpected or invalid content.

How can I copy a container from a page to another?

Hi there,

you can just select the Container, and CTRL-C to copy it. Then you can paste it another page.

Please help me with this simple thing. I don´t know >>>where and how <<< to paste the whole container (block) in another page. What do I have to select?

THX
Roman

Hi there,

add an empty Text block to the page, insert you cursor there and then paste your container.

Hi,
I found a way, how to copy the block(container), I created an empty block and pasted CTRL+V the container there.

A new container was not created, I see this in the new created block only, may be this was not the right "empty text":

<!-- wp:generateblocks/container {"uniqueId":"f7421412","isDynamic":true,"blockVersion":3,"useInnerContainer":true,"marginTop":"0","marginRight":"0","marginBottom":"0","marginLeft":"0"} --><!-- wp:paragraph --><p>[smartslider3 slider="5"]</p><!-- /wp:paragraph --><!-- wp:paragraph --><p></p><!-- /wp:paragraph --><!-- wp:generateblocks/headline {"uniqueId":"b67d28e6","element":"h3","blockVersion":2} --><h3 class="gb-headline gb-headline-b67d28e6 gb-headline-text">Frühere Termine</h3><!--

Roman

If Copy the Block, then it copies the blocks HTML, which is the code you see there.

Try this instead:

1. Copy the block
2. On the new page, in the 3 dot menu in Top Bar, switch to the Code Editor
3. In the editor window paste in your block, it will look like the HTML.
4. Switch back to Visual Editor to see your block.

Thanks, it works now.
I did not find the 3 dot menu in Top Bar, but I found another place to switch to HTML.
Roman

Ok, glad to hear that is working for you

This archived topic is closed to new replies.