The Virtue Premium Theme comes with built in shortcodes and a shortcode generators. When writing a post or page you can use these shortcodes to make richer content for your site.

To use the shortcode generator click on the “virtue shortcodes” button inside your page or post.

Premium Shortcodes1ARROW-min

Premium Shortcodes2-min

Other Shortcodes included with Premium

Carousel Shortcode:
[carousel type=post]

Options:

  • type => post, portfolio, featured-products, sale-products, best-products and cat-products.
  • orderby => menu_order and date
  • columns => 2, 3, 4 and 5.
  • items => (a number of how many items in carousel ex: 8)
  • speed => (A number, in milliseconds. ex: 9000)
  • scroll => 1 or “all” (if all carousel will scroll all items showing)
  • cat => (only works with portfolio, post and cat-products use term slug)

A full example:

[carousel type=post orderby=date columns=4 items=8 speed=9000 scroll=all cat=photos]
Blog Posts Shortcodes:
[blog_posts]

Options:

  • orderby => menu_order and date
  • items => (a number of how many items to show ex: 8)
  • word_count => (must be less than excerpt)
  • cat => (category term slug)
  • offset => (a number of how many items to skip)
  • type => normal or slider
  • (if type slider) speed => 7000 (in miliseconds)
  • (if type slider) width => 1140 (in pixels)
  • (if type slider) height => 400 (in pixels)

A full example:

[blog_posts orderby=date items=4 word_count=30 cat=photos]
[kad_blog]

Options:

  • orderby => menu_order and date
  • items => (a number of how many items to show ex: 8)
  • fullpost => true or false
  • offset => (a number of how many items to skip)
  • cat => (category term slug)

A full example:

[kad_blog orderby=date items=4 fullpost=false cat=photos]
[blog_grid]

Options:

  • orderby => menu_order, rand, title and date
  • items => (a number of how many items to show ex: 8)
  • columns => (2, 3 or 4)
  • offset => (a number of how many items to skip)
  • cat => (category term slug)

A full example:

[blog_grid orderby=date items=4 columns=3 cat=photos]
Portfolio Posts Shortcode:
[portfolio_posts]

Options:

  • orderby => menu_order, title, rand and date
  • items => (a number of how many items to show ex: 8)
  • lightbox => true
  • height => (a number of how many pixels in height to crop the portfolio items ex: 200)
  • columns => 2, 3, 4 and 5.
  • showtypes => true
  • excerpt => false
  • cat => (category term slug)

A full example:

[portfolio_posts orderby=date excerpt=false columns=4 items=4 height=200 lightbox=true showtypes=true cat=photos]
Portfolio Types Shortcode:
[portfolio_types]

Options:

  • orderby => menu_order, title, rand and date
  • order => ASC or DESC
  • items => (a number of how many items to show ex: 8)
  • childof => 0 for none or use the type id
  • height => (a number of how many pixels in height to crop the portfolio items ex: 200)
  • columns => 2, 3, 4 and 5.
  • childcategories => true or false
  • excerpt => true or false

A full example:

[portfolio_types orderby=date showexcerpt=false columns=4 items=4 height=200 childof=0 childcategories=false]
Testimonial Posts Shortcode:
[testimonial_posts]

Options:

  • orderby => menu_order, title, rand and date
  • items => (a number of how many items to show ex: 8)
  • columns => 2, 3, 4 and 5.
  • cat => (category term slug)

A full example:

[testimonial_posts orderby=date items=4 columns=4 cat=photos]
Staff Posts Shortcode:
[staff_posts]

Options:

  • orderby => menu_order, title, rand and date
  • items => (a number of how many items to show ex: 8)
  • columns => 2, 3, 4 and 5.
  • limit_content => true or false
  • filter => true or false
  • lightbox => true or false
  • link => true or false
  • height => (a number of how many pixels in height to crop the staff image ex: 200)
  • cat => (category term slug)

A full example:

[staff_posts orderby="date" items="4" filter="false" link="true" columns="4" height="200" cat="photos"]
Gallery Shortcode:
[gallery ids="20,21,22"]

Options:

  • ids => the image ids
  • columns => 3 (1-6)
  • imgwidth => 200 (number for the pixels of how wide the grid image should be)
  • imgheight => 200 (number for the pixels of how tall the grid image should be)
  • masonry => true or false
  • lightboxsize => full (large, medium or thumbnail)
  • gallery_id => number (defaults to a random)
  • type => default (can be slider, carousel, imagecarousel, grid or default)
  • caption => true or false
  • fullscreen => true or false
  • (for slider type) autoplay => true or false
  • (for slider type) speed => 9000
  • (for slider type) width => 1140
  • (for slider type) height => 400
  • (for grid type) portraitstring => 3,4,7,8,11,12,15,16

A full example:

[gallery ids="20,21,22" type="carousel" columns="4" lightboxsize="large"]]
Image Menu Item Shortcode:
[img_menu]

Options:

  • image => url to background image
  • height => number
  • title => Title Text
  • description => Description Text
  • link => Link URL
  • target => _blank
  • columns => defaults to 3

A full example:

[img_menu image="urltotheimage.jpg" columns="1" title="Title" description="Description" link="#"]
Info Box Shortcode:
[infobox][/infobox]

Options:

  • icon => icon-home (any icon)
  • size => if icon set the size of the icon (48)
  • color => #fff (icon hex color)
  • iconbackground => #444 (hex color)
  • image => url to image
  • alt => if image use to add alt text
  • link => Link URL
  • tcolor => #444 (text hex color)
  • background => #f2f2f2 (text hex background color)

A full example:

[infobox icon="icon-home" size="48" color="#fff" iconbackground="#444" tcolor="#444" background="#f2f2f2" link="#" target="_blank"]

Title

Description

[/infobox]
Simple Box:
[kt_box]

Options:

  • padding_top => 15 (any number)
  • padding_bottom => 15 (any number)
  • padding_left => 15 (any number)
  • padding_right => 15 (any number)
  • background => #ffffff
  • opacity => 1 (this applies to the background)
  • style => (any extra css inline styling)
  • valign => top

A full example:

[kt_box background="#444" opacity=".5" valign="middle" min_height="400"] CONTENT HERE [/kt_box]
Image Split:
[kt_imgsplit]

Options:

  • height => 500 (any number)
  • image => url to image
  • image_cover => false (true or false)
  • image_background => (any hex color for behind the image)
  • content_background => (any hex color for behind the content)
  • image_link => (any valid link)
  • link_target => _self (use _blank for new window)
  • imageside => left (can be left or right)
  • id => (any string)

A full example:

[kt_imgsplit height="500" image="urltotheimage.jpg" image_cover="false" image_background="#444" image_link="#link" link_target="_blank" content_background="#f2f2f2" imageside="right"] CONTENT HERE [/kt_imgsplit]