Documentation

Image

Theย Imageย Item type allows you to custom images to your Ditty. For general information on working with items check out the following articles:

Image Settings

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

General Settings

Set the general settings of the Image.

  • Image Type โ€“ Select the type of image to display.
  • Image โ€“ Upload or select an image.
  • Add custom image data โ€“ Check to add custom image data. If left unchecked, data attached to the Media Library attachment will be used.
  • Image URL โ€“ Add a URL to an image.
  • Alt Text โ€“ Add the alt text for the image.
  • Title โ€“ Add a title for the image.
  • Caption โ€“ Add a caption for the image.
  • Description โ€“ Add a description for the image.

Links

Configure link settings for the image.

  • Link – Select the link type for the image.
  • Link Target โ€“ Set a target for the link.
  • Link No Follow โ€“ Enabling this setting will add an attribute called โ€˜nofollowโ€™ to the link. This tells search engines to not follow this link.
  • Link URL โ€“ Add a custom link to your image.
  • Link Title โ€“ Add a title to the custom link.
  • Link Target โ€“ Set a target for your link.
  • Link No Follow โ€“ Enabling this setting will add an attribute called โ€˜nofollowโ€™ to your link. This tells search engines to not follow this link.

Customize (Layout Tags)

Customize the layout tags used in the layout for an Image 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

Image Layout Settings

Select the Pencil/Brush icon shown on your Image 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 Image 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.
  • {categories} โ€“ Render the itemโ€™s categories.
  • {caption} โ€“ Render the itemโ€™s caption data.
  • {content} โ€“ Render the itemโ€™s description data.
  • {icon} โ€“ Render the itemโ€™s icon.
  • {image} โ€“ Render the itemโ€™s image.
  • {image_url} โ€“ Render the itemโ€™s image url.
  • {permalink} โ€“ Render the itemโ€™s permalink.
  • {time} โ€“ Render the itemโ€™s date/time.
  • {title} โ€“ Render the itemโ€™s title.

CSS Selectors

The following css classed are available to use with the Image 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__caption
  • .ditty-item__content
  • .ditty-item__icon
  • .ditty-item__image
  • .ditty-item__image_url
  • .ditty-item__permalink
  • .ditty-item__time
  • .ditty-item__title