{"id":2117,"date":"2020-05-22T22:03:03","date_gmt":"2020-05-22T22:03:03","guid":{"rendered":"https:\/\/the7kennisbank.nl\/?p=2117"},"modified":"2020-05-22T22:40:23","modified_gmt":"2020-05-22T22:40:23","slug":"typography-shortcodes","status":"publish","type":"post","link":"https:\/\/the7kennisbank.nl\/en\/user-guide\/typography-shortcodes\/","title":{"rendered":"Typography Shortcodes"},"content":{"rendered":"<p><head><meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\"><\/head><\/p>\n<p>The7\u00a0typography shortcodes are available in a standard WYSIWYG editor and, in result, in WPBakery Page Builder \u201cText Block\u201d.<\/p>\n<p>Before getting started, please make sure that you\u2019re accustomed with idea of shortcodes in WordPress:\u00a0<a href=\"https:\/\/en.support.wordpress.com\/shortcodes\/\">http:\/\/en.support.wordpress.com\/shortcodes\/<\/a><br \/><em>Note that link above is given only for the quick illustration of what shortcodes are. Not all shortcodes described in it will work in your theme.\u00a0<\/em><\/p>\n<p>Apart from visual elements\/shortcodes in WPBakery Page Builder in The7\u00a0we are also utilizing conventional text-based shortcodes which are listed in a dropdown when clicking on \u201cShortcodes\u201d in your WYSIWYG Editor or Text Block (fig. 1).<\/p>\n<div id=\"attachment_3475\" class=\"wp-caption aligncenter c1\"><a href=\"https:\/\/guide.the7.io\/wp-content\/uploads\/2013\/07\/Fig._1._Text_shortcodes_by_Dream-Theme..png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3475 size-full\" src=\"https:\/\/the7kennisbank.nl\/wp-content\/uploads\/2019\/09\/Fig._1._Text_shortcodes_by_Dream-Theme.-2.png\" alt=\"Fig. 1. Text shortcodes by Dream-Theme.\" width=\"702\" height=\"504\"><\/a><\/p>\n<p class=\"wp-caption-text\">Fig. 1. Text shortcodes by Dream-Theme.<\/p>\n<\/div>\n<h3>Gap<\/h3>\n<div class=\"gap\" style=\"line-height: 0px; height: 0px;\"><\/div>\n<p>Gap shortcode works the same as \u201cEmpty Space\u201d elements \u2013 it adds a gap between paragraphs and other elements. It has the only option \u2013 height, where \u201c10\u201d stands for 10px.<\/p>\n<h3>Divider<\/h3>\n<div class=\"hr-thin\"><\/div>\n<p>Divider shortcode inserts a horizontal divider line between elements. It can be thin or thick, depending on what you specify under \u201cstyle\u201d option.<\/p>\n<div id=\"attachment_3479\" class=\"wp-caption aligncenter c2\"><a href=\"https:\/\/guide.the7.io\/wp-content\/uploads\/2013\/07\/Fig._2._Divider..png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3479\" src=\"https:\/\/the7kennisbank.nl\/wp-content\/uploads\/2019\/09\/Fig._2._Divider..png\" alt=\"Fig. 2. Divider.\" width=\"1213\" height=\"163\"><\/a><\/p>\n<p class=\"wp-caption-text\">Fig. 2. Divider.<\/p>\n<\/div>\n<h3>Tooltip<\/h3>\n<div id=\"attachment_3481\" class=\"wp-caption aligncenter c3\"><a href=\"https:\/\/guide.the7.io\/wp-content\/uploads\/2013\/07\/Fig._3._Tooltip..png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3481\" src=\"https:\/\/the7kennisbank.nl\/wp-content\/uploads\/2019\/09\/Fig._3._Tooltip..png\" alt=\"Fig. 3. Tooltip.\" width=\"379\" height=\"126\"><\/a><\/p>\n<p class=\"wp-caption-text\">Fig. 3. Tooltip.<\/p>\n<\/div>\n<p>In order to achieve such a nice layout (fig. 3)\u00a0try using the following shortcode syntax:<\/p>\n<p>Apply <span class=\"shortcode-tooltip\">\u201dtooltip\u201d<span class=\"tooltip-c\">popup content<\/span><\/span> shortcode here.<\/p>\n<h3>Highlight<\/h3>\n<div class=\"wp-caption aligncenter c4\"><a href=\"https:\/\/guide.the7.io\/wp-content\/uploads\/2013\/07\/Fig._4._Highlight_shortcode..png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3483 size-full\" src=\"https:\/\/the7kennisbank.nl\/wp-content\/uploads\/2019\/09\/Fig._4._Highlight_shortcode..png\" alt=\"Fig. 4. Highlight shortcode.\" width=\"760\" height=\"92\"><\/a><\/p>\n<p class=\"wp-caption-text\">Fig. 4. Highlight shortcode.<\/p>\n<\/div>\n<p>This shortcode hightlights a part of a text string. Use the following syntax:<\/p>\n<p>Ut elit tellus, <span class=\"dt-highlight\" >lorem ipsum dolor<\/span> sit amet.<\/p>\n<p>Shortcode attributes are listed below:<\/p>\n<ul>\n<li>use\u00a0color=\u201d\u201d attribute to specify one of color presets: white, red, berry, orange, yellow, pink, green, dark_green, blue, dark_blue, violet, black, gray, grey. Background color will be altered appropriately . And text color will automatically turn white;<\/li>\n<li>alternatively, use combination\u00a0text_color=\u201d\u201d bg_color=\u201d\u201d in order to specify both text and background colors. Use HEX values like \u201c#cc3366\u201d;<\/li>\n<li>or leave all attributes empty in order to apply accent color to the background (including the case when accent color is gradient) and make text color white.<\/li>\n<\/ul>\n<h3>Code<\/h3>\n<div id=\"attachment_3485\" class=\"wp-caption aligncenter c3\"><a href=\"https:\/\/guide.the7.io\/wp-content\/uploads\/2013\/07\/Fig._5._Code_shortcode..png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3485\" src=\"https:\/\/the7kennisbank.nl\/wp-content\/uploads\/2019\/09\/Fig._5._Code_shortcode..png\" alt=\"Fig. 5. Code shortcode.\" width=\"379\" height=\"105\"><\/a><\/p>\n<p class=\"wp-caption-text\">Fig. 5. Code shortcode.<\/p>\n<\/div>\n<p>This shortcode allows to display code strings with correct interpretation of symbols \u201c, &lt;, &gt;, etc. (unlikely to the case when these characters are inserted directly into WYSWYG editor). Use the following syntax:<\/p>\n<div class=\"shortcode-code\">\n<p>&lt;div class=\u201dmy-element\u201d style=\u201d\u201d&gt;Lorem&lt;\/div&gt;<\/p><\/div>\n<h3>Simple Login Form<\/h3>\n<p>You may want to display login form in your website front-end (fig. 6). Simple Login Form shortcode will help you in this case. Use the following syntax:<\/p>\n<div class=\"simple-login-form-shortcode\">\n\t\t\t\t\t<form name=\"loginform\" id=\"loginform\" action=\"https:\/\/the7kennisbank.nl\/wp-login.php\" method=\"post\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<p class=\"login-username\">\n\t\t\t\t\t\t\t<label class=\"assistive-text\" for=\"user_login\">\u201d\u201d<\/label>\n\t\t\t\t\t\t\t<input type=\"text\" name=\"log\" placeholder=\"\u201d\u201d\" id=\"user_login\" class=\"input\" value=\"\" size=\"20\" \/>\n\t\t\t\t\t\t<\/p>\n\t\t\t\t\t\t<p class=\"login-password\">\n\t\t\t\t\t\t\t<label class=\"assistive-text\" for=\"user_pass\">\u201d\u201d<\/label>\n\t\t\t\t\t\t\t<input type=\"password\" name=\"pwd\" placeholder=\"\u201d\u201d\" id=\"user_pass\" class=\"input\" value=\"\" size=\"20\" \/>\n\t\t\t\t\t\t<\/p>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<p class=\"login-remember\"><label><input name=\"rememberme\" type=\"checkbox\" id=\"rememberme\" value=\"forever\" \/> \u201d\u201d<\/label><\/p>\n\t\t\t\t\t\t<p class=\"login-submit\">\n\t\t\t\t\t\t\t<input type=\"submit\" name=\"wp-submit\" id=\"wp-submit\" class=\"button-primary\" value=\"\u201d\u201d\" \/>\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"redirect_to\" value=\"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/2117\" \/>\n\t\t\t\t\t\t<\/p>\n\t\t\t\t\t\t\n\t\t\t\t\t<\/form><\/div>\n<p>It has four attributes to adjust standard labels for username and password fields, \u201cRememeber me\u201d check-box and \u201cLog in\u201d button. Like:<\/p>\n<div class=\"simple-login-form-shortcode\">\n\t\t\t\t\t<form name=\"loginform\" id=\"loginform\" action=\"https:\/\/the7kennisbank.nl\/wp-login.php\" method=\"post\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<p class=\"login-username\">\n\t\t\t\t\t\t\t<label class=\"assistive-text\" for=\"user_login\">\u201dNom<\/label>\n\t\t\t\t\t\t\t<input type=\"text\" name=\"log\" placeholder=\"\u201dNom\" id=\"user_login\" class=\"input\" value=\"\" size=\"20\" \/>\n\t\t\t\t\t\t<\/p>\n\t\t\t\t\t\t<p class=\"login-password\">\n\t\t\t\t\t\t\t<label class=\"assistive-text\" for=\"user_pass\">\u201dMot<\/label>\n\t\t\t\t\t\t\t<input type=\"password\" name=\"pwd\" placeholder=\"\u201dMot\" id=\"user_pass\" class=\"input\" value=\"\" size=\"20\" \/>\n\t\t\t\t\t\t<\/p>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<p class=\"login-remember\"><label><input name=\"rememberme\" type=\"checkbox\" id=\"rememberme\" value=\"forever\" \/> \u201dSe<\/label><\/p>\n\t\t\t\t\t\t<p class=\"login-submit\">\n\t\t\t\t\t\t\t<input type=\"submit\" name=\"wp-submit\" id=\"wp-submit\" class=\"button-primary\" value=\"\u201dSe\" \/>\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"redirect_to\" value=\"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/2117\" \/>\n\t\t\t\t\t\t<\/p>\n\t\t\t\t\t\t\n\t\t\t\t\t<\/form><\/div>\n<div id=\"attachment_3488\" class=\"wp-caption aligncenter c5\"><a href=\"https:\/\/guide.the7.io\/wp-content\/uploads\/2013\/07\/Fig._6._Simple_Login_Form_shortcode..png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3488\" src=\"https:\/\/the7kennisbank.nl\/wp-content\/uploads\/2019\/09\/Fig._6._Simple_Login_Form_shortcode..png\" alt=\"Fig. 6. Simple Login Form shortcode.\" width=\"640\" height=\"199\"><\/a><\/p>\n<p class=\"wp-caption-text\">Fig. 6. Simple Login Form shortcode.<\/p>\n<\/div>\n<p>Leave them empty if you want to use default WordPress labels.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The7\u00a0typography shortcodes are available in a standard WYSIWYG editor and, in result, in WPBakery Page Builder \u201cText Block\u201d. Before getting started, please make sure that you\u2019re accustomed with idea of shortcodes in WordPress:\u00a0http:\/\/en.support.wordpress.com\/shortcodes\/Note that link above is given only for the quick illustration of what shortcodes are. Not all shortcodes described in it will work&hellip;<\/p>\n","protected":false},"author":2,"featured_media":2288,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[9,21],"tags":[],"class_list":["post-2117","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-user-guide","category-visual-layout-builder","category-9","category-21","description-off"],"acf":[],"_links":{"self":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/2117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/comments?post=2117"}],"version-history":[{"count":3,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/2117\/revisions"}],"predecessor-version":[{"id":2496,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/2117\/revisions\/2496"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/media\/2288"}],"wp:attachment":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/media?parent=2117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/categories?post=2117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/tags?post=2117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}