Skip to content

UI Block (Shortcode)

UI Blocks, also known as Shortcodes, are small pieces of code that allow you to add predefined elements to your website. They are used to enhance the functionality of your website without the need to write custom code.

Usage

To use a shortcode, simply add the shortcode to the content of a page or post.

For example, to add a Google Maps to a page, use the following shortcode:

html
[google-map]New York, USA[/google-map]

Shortcode

The above shortcode will add a Google Map to the page with the location set to New York, USA.

Go to the frontend of your website to see the result:

Shortcode

Available Shortcodes

About

Display simple information about your shop, company, or organization.

html
[about image_1="path_to_media_image" image_2="path_to_media_image" subtitle="Sample subtitle" title="Sample title" description="Sample description" action_label="Contact Us" action_url="/contact"][/about]

About

Ads

Display advertisements on your website. There are 4 different styles available.

For example:

[ads style="1" key_1="ADS_KEY" key_2="ADS_KEY"][/ads]

Style 1

Ads style 1

Style 2

Ads style 2

Style 3

Ads style 3

Style 4

Ads style 4

To use the Ads shortcode, activate the Ads plugin and create an ad unit in the Ads section of the admin menu dashboard.

Manage Ads

Then, choose the ad unit to display in the shortcode.

Shortcode Ads

App Downloads

Display app download links with icons.

Example:

html
[app-downloads title="Sample title" google_label="Google Play" google_icon="ti ti-brand-google-play" apple_label="Apple Store" apple_icon="ti ti-brand-apple-filled" screenshot="path_to_media_image"][/app-downloads]

App Downloads

Blog Posts

Display a list of blog posts.

Blog Posts

Use the following shortcode to display a list of blog posts:

html
[blog-posts title="Sample title" type="latest" limit="3"][/blog-posts]

The above shortcode will display the latest 3 blog posts.

Contact Form

Display a contact form on a page.

html
[contact-form show_contact_form="1" title="Sent A Message"][/contact-form]

Contact Form

Ecommerce Categories

Display a list of specific product categories.

html
[ecommerce-categories style="slider" category_ids="1,2,3,4,5"][/ecommerce-categories]

We have 2 styles available for the Ecommerce Categories shortcode:

Grid style

Ecommerce Categories Grid

Slider style

Ecommerce Categories Slider

Ecommerce Coupons

Display a list of specific available coupons.

html
[ecommerce-coupons coupon_ids="1,2,3,4"][/ecommerce-coupons]

Ecommerce Coupons

Ecommerce Flash Sale

The Ecommerce Flash Sale shortcode can be used to display a list of products or a countdown timer.

html
[ecommerce-flash-sale style="1" title="Sample title" flash_sale_id="1" limit="4"][/ecommerce-flash-sale]

The above shortcode will display a list of products with the specified flash sale ID (in this case, 1). Make sure to create a flash sale in the admin panel first.

List product style

Ecommerce Flash Sale List Product

Countdown style

Ecommerce Flash Sale Countdown

Ecommerce Product Groups

Product groups are used to display a list of products in a group. There are 5 groups available:

  • All: Display all products
  • Featured: Display featured products
  • On Sale: Display products that are on sale
  • Trending: Display trending products
  • Top Rated: Display top-rated products
html
[ecommerce-product-groups title="Sample title" limit="8" tabs="all,featured,on-sale,trending,top-rated"][/ecommerce-product-groups]

You also can choose the style tabs or columns for the product groups.

Tabs style

Ecommerce Product Groups Tabs

Columns style

Ecommerce Product Groups Columns

Ecommerce Products

This is the most used shortcode to display a list of products. In this shortcode, you can choose the category, collection, or specific products to display.

html
[ecommerce-products style="grid" category_ids="20" limit="12"][/ecommerce-products]

The above example will display 20 products in the category with the ID of 20.

You also can control the left side of product list to display the category detail, and ads banners.

Ecommerce Products Admin

Grid style

Ecommerce Products Grid

Slider style

Ecommerce Products Slider

Simple style

Ecommerce Products Simple

Display a list of images in a gallery. There are 2 different styles available.

Style 1

Gallery Images

Style 2

Gallery Images

TIP

Activate the Gallery plugin to use this shortcode.

Image Slider

It used to display a list of images in a slider. Usually for brands, logos, or sponsors.

Image Slider

Simple Slider

Usually used to display a list of images in a slider on the hero section of the website.

First, you need to create a slider in the admin panel. Go to Simple Slider on the admin menu dashboard to create a slider.

There are 5 styles for different purposes:

Style 1

Simple Slider

Style 2

Simple Slider

Style 3

Simple Slider

Style 4

Simple Slider

Style 5

Simple Slider

TIP

Activate the Simple Slider plugin to use this shortcode.

Site Features

Display a list of site features. There are 4 different styles available.

Style 1

Site Features

Style 2

Site Features

Style 3

Site Features

Style 4

Site Features

Testimonials

Add testimonials to your website. There are 3 different styles available.

html
[testimonials style="1" testimonial_ids="1,2,3"][/testimonials]

Go to Testimonials on the admin menu dashboard to create testimonials and assign them to the shortcode.

TIP

Activate the Testimonials plugin to use this shortcode.

Style 1

Testimonials

Style 2

Testimonials

Style 3

Testimonials