Documentation

HTML

Theย HTMLย item type allows you to add custom text to your Ditty using custom HTML. For general information on working with items check out the following articles:

HTML Settings

Select the Gear/Edit icon shown on your HTML item to adjust the settings.

General Settings

Set the general settings of the HTML item.

  • Editor โ€“ Add the content of your item.
  • Label โ€“ Add a custom label to display in the item list.

Customize (Layout Tags)

Customize the layout tags used in the layout for an HTML item. Keep in mind that your layout may not use all of the tags shown on this panel. If the tag is not included in your layout, modifications in this panel will have no effect.

  • Click the checkmark next to each tag to toggle visibility.
  • Click the gear icon to open the available attributes for each tag.
  • If you want to modify an attribute, click the pencil icon next to the attribute name. This will open a field to set a custom value for the attribute.

For more information view the documentation here: https://www.metaphorcreations.com/article/ditty/general/adding-new-items/#customize-tab

HTML Layout Settings

Select the Pencil/Brush icon shown on your HTML item to modify the layout for the item. Read more about what Layouts are and how they are used here:ย https://www.metaphorcreations.com/article/ditty/general/using-layouts/

HTML Tags

The following tags are available to use with theย HTMLย item type.

  • {author_avatar} โ€“ Render the itemโ€™s author avatar.
  • {author_bio} โ€“ Render the itemโ€™s author bio.
  • {author_name} โ€“ Render the itemโ€™s author name.
  • {content} โ€“ Render the item’s custom content.
  • {time} โ€“ Render the itemโ€™s date/time.

CSS Selectors

The following css classed are available to use with theย HTMLย item type.

  • .ditty-item__elements โ€“ The container wrapping around the itemโ€™s content.
  • .ditty-item__author_avatar
  • .ditty-item__author_bio
  • .ditty-item__author_name
  • .ditty-item__content
  • .ditty-item__time