Skip to main content

With the media element you can display icons or images beside the text, without having a break in the text around the picture. Further information here.

The shortcode consists of three parts. Firstly there is the tag media around the complete code. Then there is the media_object, which contains the image or the icon and finally the media_body. Only the media_object has attributes.

Code

[media]
[media_object style="left" aligned="top"]<img src="http://placehold.it/150x150" alt="" />[/media_object]
[media_body]Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.[/media_body]
[/media]

Attribute

Name Content Default value Meaning
style left, right left Defines the orientation, whether the element is hanging on the right or the left.
aligned top, middle, bottom Defines the orientation, whether the element is hanging on the right or the left.

Was this article helpful?

1 Star2 Stars3 Stars4 Stars5 Stars
1.00 / 5

Keine Kommentare vorhanden


You have a question or an opinion about this post? Share it with us!

Your email address will not be published. Required fields are marked *

*
*