{"id":32376,"date":"2025-03-24T11:52:57","date_gmt":"2025-03-24T11:52:57","guid":{"rendered":"https:\/\/doc.probance.com\/?post_type=tips&#038;p=32376"},"modified":"2025-10-03T08:14:43","modified_gmt":"2025-10-03T08:14:43","slug":"how-to-create-a-reusable-block-for-different-templates","status":"publish","type":"tips","link":"https:\/\/doc.probance.com\/en\/tips\/how-to-create-a-reusable-block-for-different-templates\/","title":{"rendered":"How to create a reusable block for different templates (variant block)?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>You can save a block with modified content and appearance as a variant to reuse it in other templates.<\/p>\n\n\n\n<p>Select your block, then click on the <strong>icon<\/strong> <img loading=\"lazy\" decoding=\"async\" width=\"20\" height=\"20\" src=\"https:\/\/doc.probance.com\/wp-content\/uploads\/2020\/10\/110_26_FR.png\" alt=\"\">. In the window that opens, name the variant. The <strong>Set this variant as default<\/strong> option allows you to automatically apply the content and appearance of the variant to all blocks of the same type that you add to the current template or any future templates.<\/p>\n\n\n\n<p>Click <strong>Save<\/strong> to confirm.<\/p>\n\n\n\n<p><strong>Watch the video to learn more<\/strong> :<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-vimeo wp-block-embed-vimeo wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"TIPS -  Using a block variable\" src=\"https:\/\/player.vimeo.com\/video\/1068091489?dnt=1&amp;app_id=122963\" width=\"500\" height=\"281\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>You can save a block with modified content and appearance as a variant to reuse it in other templates.<\/p>\n","protected":false},"author":444,"featured_media":0,"template":"","tips_tags":[1119],"class_list":["post-32376","tips","type-tips","status-publish","hentry","tips_tags-template-dynamic-customisation"],"_links":{"self":[{"href":"https:\/\/doc.probance.com\/en\/wp-json\/wp\/v2\/tips\/32376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doc.probance.com\/en\/wp-json\/wp\/v2\/tips"}],"about":[{"href":"https:\/\/doc.probance.com\/en\/wp-json\/wp\/v2\/types\/tips"}],"author":[{"embeddable":true,"href":"https:\/\/doc.probance.com\/en\/wp-json\/wp\/v2\/users\/444"}],"wp:attachment":[{"href":"https:\/\/doc.probance.com\/en\/wp-json\/wp\/v2\/media?parent=32376"}],"wp:term":[{"taxonomy":"tips_tags","embeddable":true,"href":"https:\/\/doc.probance.com\/en\/wp-json\/wp\/v2\/tips_tags?post=32376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}