Fragment
Last updated
Last updated
The fragment
block is a container (invisible on the front end) to which you can add a fragment
(containing one or more template parts).
This allows you to add one or more template parts wherever you are in your Template, Page, Post etc.
Search for the button
block in the Quick Inserter or Inserter Panel.
Click the fragment
block to insert it into your parent block.
You can add a fragment (multiple template parts) to your fragment
block, such as headers, footers or custom fragments.
By default, Global Headers and Footers are available in the Fragment dropdown.
Select a fragment
block.
Choose Global Header or Global Footer in dropdown as required.
Alternately:
Open the Block Inspector.
Choose required Global Fragment in the dropdown.
A Custom fragment can be added from the Cwicly Themer in the Dashboard.
From the Dashboard, open the Cwicly Themer.
Open Fragments(top left corner)
Click "+ Fragment" to open the New Fragment modal.
Input Fragment name and click Create.
In the Custom section, click the "+" icon next to the Fragment you wish to add.
Select the required Custom fragment in the dropdown.
Select the required Custom fragment in the dropdown in the Block Inspector.