Adding Global Items

If you have an element that is repeated on many pages (like header or footer content) you can make it a PageMagic global element by adding editable-global-element="true" and editable-global-identifier. Make sure the editable-global-identifier is unqiue site-wide on the website.

You can then to edit this item once on PageMagic, and it will update on every page it is found.

Example:

  <!-- Edit once using PageMagic and it will update everywhere it's found -->
<div class="footer editable" editable-label="Footer email" editable-global-element="true" editable-global-identifier="footer-email">
 Want to get in touch? Email us on justin@pagemagic.io
</div>