Documentation

Default

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

Default Settings

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

General Settings

Set the general settings of the Default item.

  • Contentย โ€“ Add the content of your item. HTML and inline styles are supported.
  • Linkย โ€“ Add a custom link to your content. You can also add a link directly into your content.
  • Link Titleย โ€“ Add a title to the custom link.
  • Link Targetย โ€“ Set a target for your link.
  • No Followย โ€“ Enabling this setting will add an attribute called ‘nofollow’ to your link. This tells search engines to not follow this link.
  • Labelย โ€“ Add a custom label to display in the item list.

Customize (Layout Tags)

Customize the layout tags used in the layout for a Default 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

Default Layout Settings

Select the Pencil/Brush icon shown on your Default 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ย Defaultย 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ย Defaultย 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