{"id":38560,"date":"2014-12-04T03:25:29","date_gmt":"2014-12-04T08:25:29","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=38560"},"modified":"2017-08-14T06:08:14","modified_gmt":"2017-08-14T10:08:14","slug":"wordpress-how-to-use-grid-columns-shortcodes","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-how-to-use-grid-columns-shortcodes.html","title":{"rendered":"WordPress. How to use grid (columns) shortcodes (based on Cherry Framework 3.x)"},"content":{"rendered":"<p>\r\n<\/p>\r\n<p>Our support team is glad to present our new guide on working with WordPress <strong>grid (column) shortcodes <\/strong> that shows how to create the required page content layout.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=xdAi8fpnnQo?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to use grid (columns) shortcodes<\/a><\/p>\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/service-center\/\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-3-(835-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>\r\n<ol>\r\n<li>\r\n<p>Go to<strong> Pages -> All pages <\/strong> section in your WordPress dashboard. <\/p>\r\n<\/li>\r\n<li>\r\n<p> Click on  <strong> Shortcodes<\/strong> button once you are in Visual editing mode. Choose <strong> Columns -> row <\/strong> option there. It will insert code like [row][\/row] to the page text:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_1-300x175.png\" alt=\"WordPress.How_to_use_grid_(columns)_shortcodes_1\" width=\"300\" height=\"175\" class=\"aligncenter size-medium wp-image-38562\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_1-300x175.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_1-150x87.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_1.png 996w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Repeat the same procedure  to insert <strong> [spanX] <\/strong> element to the page between [row][\/row] code. As a result, you should receive the structure like the following:<br \/>\r\n\t\t[row][spanX][\/spanX][\/row], where X is a number from 1 to 12.\r\n\t\t<\/p>\r\n<\/li>\r\n<li>\r\n<p>Insert your content between  [spanX][\/spanX] elements like the following:<\/p>\r\n<p>\t\t[row][spanX] <em>content goes here&#8230;<\/em> [\/spanX][\/row]<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Let&#8217;s check how to set the desired number of columns to the page content:<\/p>\r\n<ol>\r\n<li>\r\n<p><strong>1 column<\/strong> is used for making part of content appear fullwidth. Code looks like the following:<br \/>\r\n\t\t[row][span12] <em>content goes here&#8230;<\/em> [\/span12][\/row]\r\n\t\t<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_2-300x153.png\" alt=\"WordPress.How_to_use_grid_(columns)_shortcodes_2\" width=\"300\" height=\"153\" class=\"aligncenter size-medium wp-image-38563\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_2-300x153.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_2-150x76.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_2.png 996w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<ul>\r\n<li>\r\n<p><strong>2 equal columns <\/strong> can be created on your page\/post using <strong> Shortcodes -> Columns -> 2 Columns -> 1\/2 | 1\/2 <\/strong> in Visual editing mode:\r\n\t\t\t\t<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_3-300x175.png\" alt=\"WordPress.How_to_use_grid_(columns)_shortcodes_3\" width=\"300\" height=\"175\" class=\"aligncenter size-medium wp-image-38564\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_3-300x175.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_3-150x87.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_3.png 996w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p> Or adding this code to your page in Text mode: <\/p>\r\n<pre>\r\n\t\t\t\t\t[row]\r\n\t\t\t\t\t[span6] <em>1st column content goes here...<\/em> [\/span6]\r\n\t\t\t\t\t[span6] <em>2nd column content goes here...<\/em> [\/span6]\r\n\t\t\t\t\t[\/row]\r\n\t\t\t\t<\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_4-300x154.png\" alt=\"WordPress.How_to_use_grid_(columns)_shortcodes_4\" width=\"300\" height=\"154\" class=\"aligncenter size-medium wp-image-38565\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_4-300x154.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_4-150x77.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_4.png 996w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>To make the content appear in <strong>2 columns with different width<\/strong>, there can be used any other option from <strong> Shortcodes -> Columns -> 2 Columns <\/strong> dropdown in Visual editing mode or code with different number for [spanX] elements in Text mode. The only requirement is to keep 12 per row, for example using [span3] + [span9] or [span8] + [span4] codes. Example: <\/p>\r\n<pre>\r\n\t\t\t\t\t[row]\r\n\t\t\t\t\t[span4] <em>1st column content goes here...<\/em> [\/span4]\r\n\t\t\t\t\t[span8] <em>2nd column content goes here...<\/em> [\/span8]\r\n\t\t\t\t\t[\/row]\r\n\t\t\t\t\t<\/pre>\r\n<p>The result appears on the screenshot below:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_5..png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_5.-300x175.png\" alt=\"WordPress.How_to_use_grid_(columns)_shortcodes_5.\" width=\"300\" height=\"175\" class=\"aligncenter size-medium wp-image-38566\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_5.-300x175.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_5.-150x87.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_5..png 996w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<\/ul>\r\n<\/li>\r\n<li>\r\n<p><strong>3 columns <\/strong> layout may be set by choosing <strong> Shortcodes -> 3 Columns -> 1\/3 | 1\/3 | 1\/3 <\/strong> or  this code: <\/p>\r\n<pre>\r\n\t\t\t\t\t[row]\r\n\t\t\t\t\t[span4] <em>1st column content goes here...<\/em> [\/span4]\r\n\t\t\t\t\t[span4] <em>2nd column content goes here...<\/em> [\/span4]\r\n\t\t\t\t\t[span4] <em>3rd column content goes here...<\/em> [\/span4]\r\n\t\t\t\t\t[\/row]\r\n\t\t\t\t\t<\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_6.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_6-300x175.png\" alt=\"WordPress.How_to_use_grid_(columns)_shortcodes_6\" width=\"300\" height=\"175\" class=\"aligncenter size-medium wp-image-38567\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_6-300x175.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_6-150x87.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_6.png 996w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>You may use shortcodes on the content part (between [spanX][\/spanX] elements), not plain text only. On the page it will look the following way:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_7.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_7-300x120.png\" alt=\"WordPress.How_to_use_grid_(columns)_shortcodes_7\" width=\"300\" height=\"120\" class=\"aligncenter size-medium wp-image-38568\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_7-300x120.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_7-150x60.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_7.png 996w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p><strong>4 columns <\/strong> layout may be set the same way choosing <strong> Shortcodes -> 4 Columns -> 1\/4 | 1\/4 | 1\/4| 1\/4 <\/strong> or  with this code: <\/p>\r\n<pre>\r\n\t\t\t\t\t[row]\r\n\t\t\t\t\t[span3] <em>1st column content goes here...<\/em> [\/span3]\r\n\t\t\t\t\t[span3] <em>2nd column content goes here...<\/em> [\/span3]\r\n\t\t\t\t\t[span3] <em>3rd column content goes here...<\/em> [\/span3]\r\n\t\t\t\t\t[span3] <em>4th column content goes here...<\/em> [\/span3]\r\n\t\t\t\t\t[\/row]\r\n\t\t\t\t\t<\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_8.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_8-300x168.png\" alt=\"WordPress.How_to_use_grid_(columns)_shortcodes_8\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-38569\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_8-300x168.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_8-150x84.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/WordPress.How_to_use_grid_columns_shortcodes_8.png 1010w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p> You may also choose <strong> Shortcodes -> Fluid Columns <\/strong> option to insert fluid row between [spanX] shortcode on the page. This means that you can divide page row into 2 columns, for example, and then consider certain column (like only first one) as a fluid row, dividing it into 2, 3 or 4 sub-columns. You may play around with codes to get as structured layout as your page design requires, and make it meet your needs perfectly.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Thanks for reading this article!<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=xdAi8fpnnQo?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to use grid (columns) shortcodes<\/a><\/p>\r\n<\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Our support team is glad to present our new guide on working with WordPress grid (column) shortcodes  that shows how to create the required page content layout.<\/p>\n","protected":false},"author":59,"featured_media":40996,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[656,1528,1415,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/38560"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/59"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=38560"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/38560\/revisions"}],"predecessor-version":[{"id":82679,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/38560\/revisions\/82679"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/40996"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=38560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=38560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=38560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}