Element duplication

Duplicating existing elements can be quite useful when you are working on a few of them and want copies with similar functionality. There are two ways to go about it.

Method 1

Install the Yoast Duplicate Post plugin and activate it. The plugin can be used to clone all available post types and is not restricted to Elements only. Once installed, go to Settings –> Duplicate Post, hit the Permissions tab and activate the checkbox next to Elements. Don’t forget to Save Changes.

Duplicate post - Elements
Duplicate post – Elements

Hovering over an element in the admin will reveal a couple of new options, Clone and New Draft. Clone will duplicate the element on the spot as Draft whilst New Draft will duplicate the element as Draft and take you inside the new element for further editing.

Duplicate post - Clone / New Draft
Duplicate post – Clone / New Draft

You can also copy to a new draft from the admin bar while editing an existing element.

Duplicate post - Copy to a new draft
Duplicate post – Copy to a new draft

Method 2

Install the GP Elements Admin Link plugin and activate it. The plugin can be used to clone GeneratePress Elements only. It also adds a top admin bar where you can add all three types of Elements or duplicate existing ones, so it’s quite handy.

GP Elements Admin Link - Admin bar
GP Elements Admin Link – Admin bar

FInally, you get a new option to duplicate an existing element while you are on the Elements admin page.

GP Elements Admin Link - Duplicate
GP Elements Admin Link – Duplicate

IMPORANT NOTE! Duplicating an element also duplicates all block IDs. As a result, if you were to modify a block color on the cloned element you would not see the changes in the front end. Also, If you were to modify a block color on the original element, you would probably see that change happen in both elements! You best best is to always duplicate any elements or the container that all elements reside and delete the original ones in the cloned element. That way, a new block ID would get generated for the blocks making them unique and ready for edit.

A big thanks to Dwayne for the comment below!