Layer Attributes – Custom Classes & Alt Text
Layer attributes can help with adding advanced Custom CSS for a specific Layer. For example, a custom class could be added to a Layer, and then some CSS could be applied to the Layer (added here). The example below would apply a CSS3 text-shadow to the Layer.
1 2 3 |
.tp-caption.custom-class {text-shadow: 0 0 1px rgba(0, 0, 0, 0.5)} |
1-4. ID, Class, Title, Rel: Add a custom attribute to the Layer for advanced usage.
5: Image Alt Text: Add “Alt” text for Layer Images for maximum SEO.
From Media Library: Alt text will be taken from “WP Main Menu -> Media -> Library -> Select Image -> Alt Text”.
From Filename: Image’s filename will be used for the Alt text.
Custom: Enter a custom value (field #6 above) for the Alt text.