Categories

shortcode

Kate Daniels Апрель 15, 2015
No votes yet.
Please wait...

Shortcode is a powerful content building tool for managing content. It is a special tag which consists of different attributes and parameters.

Shortcodes are flexible because they allow us to add/remove parameters in order to make them more functional.

They were introduced to allow people to execute code inside posts and pages without writing any code directly.

Shortcodes simplify the addition of features into website and include numerous options such as displaying posts, images, icons, tags, etc.

Shortcodes are used in WordPress and Drupal based websites.

All available shortcodes are conditionally divided into these groups:

  • Dynamic — used for content output (posts, custom post types, tags, etc.);

  • Grid Columns — various columns for grid forming;

  • Elements — additional elements for content forming;

  • Other — additional elements for advanced/complex content forming:

shortcode

A shortcode is enclosed with square brackets and can be inserted into a page or post. Here is an example of a simple standard shortcode for WordPress:

[alert_box style="message" close="yes" custom_class="message"]Hello, World![/alert_box]
shortcode_1

Shortcodes are added using a shortcode button in a Visual editing mode:

shortcode_2

Here is an example of a simple standard shortcode for Drupal:

[dropcap]Text here[/dropcap] 
shortcode_3

It replaces the given text formatted like a dropcap.

Добавьте в какладки постоянную ссылку.

Submit a ticket

Если вы не смогли найти подходящее решение проблемы, пожалуйста воспользуйтесь следующей ссылкой, чтобы отправить запрос команде технической поддержки.
Отправить запросВы получите ответ в течение 24 часов

Комментарии закрыты.