Shortcodes

Shortcode name :  shape

e.g.

[shape id=99]

id attribute to add image ID ( How to find image ID )

i.e. Add image id using “id” attribute.

Shortcode Attributes

id  –  add Image ID.

float  –  make the image float left or right (  default float to left ).

margin  –  add space between image and content ( default to 1em ) , can add in css units px, em, %

width  –  Width of the image.

height  –  height of the image.

class  –  add class name’s to image.

There are some predefined class

img-50  –  add max width of image to 50%
img-60  –  add max width of image to 60%
img-70  –  add max width of image to 70%
img-80  –  add max width of image to 80%
img-90  –  add max width of image to 90%
img-100  –  add max width of image to 100%
auto-h  –  add height: auto for that image,
                     autoh or auto-h both works.

 

[shape id=99 float="right" width="500px" class="img-80" ]

 

How to – WP CSS Shapes

 

 

2 Replies to “Shortcodes”

Comments are closed.