An example of how to extend Tailor using a WordPress theme
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
genericons
inc
js
tailor
template-parts
404.php
archive.php
comments.php
footer.php
functions.php
header.php
image.php
index.php
page.php
readme.md
readme.txt
rtl.css
screenshot.png
search.php
searchform.php
sidebar-content-bottom.php
sidebar.php
single.php
style.css

readme.md

Sample theme for the Tailor page builder for WordPress

This modified version of the Twenty Sixteen theme for WordPress is intended to be used an an example for developers.

Features

This theme:

  1. Registers a new custom content element.
  2. Registers a new custom wrapper element (including custom JavaScript view).
  3. Registers a new custom container element.
  4. Registers a new custom child element, for the custom container.
  5. Modifies default setting values for sections and buttons.
  6. Adds a custom control for button elements.
  7. Adds a visibility condition for an existing button control, based on the value of the new custom control.

Check out the bottom of the functions.php file for the Tailor-related changes.

If you have questions about how to extend Tailor or would like to see an example use case added to this extension, please get in touch in one of the following ways:

  1. Facebook
  2. Twitter
  3. The Help Center

Changelog

1.0.1

Added - Filter to modify the rendered HTML of a given element. Added - Example of adding custom panel. Added - Example of removing a default element. Added - Example of modifying color palette in colorpicker control. Improved - The selector for element child containers can now be specified when registering the element.

Note: this version supports Tailor 1.6.0 and above.

1.0.0

Initial version