{"id":7398,"date":"2014-09-19T17:45:37","date_gmt":"2014-09-19T22:45:37","guid":{"rendered":"http:\/\/theme.co\/x\/demo\/icon\/1\/?page_id=7398"},"modified":"2014-09-19T17:45:37","modified_gmt":"2014-09-19T22:45:37","slug":"counter","status":"publish","type":"page","link":"https:\/\/demo.theme.co\/icon-1\/shortcodes\/counter\/","title":{"rendered":"Counter"},"content":{"rendered":"<p>The <code>&#091;counter&#093;<\/code> shortcode is a wonderfully simple, yet incredibly engaging element that can be used almost anywhere. It&#8217;s great for sharing statistics or tidbits of information about your company or service. The <code>&#091;counter&#093;<\/code> shortcode will not begin incrementing until it has come into the viewport of the screen so that you can see the effect take place. Keep scrolling down the page to more examples in action!<\/p>\n<div id=\"x-content-band-1\" class=\"x-content-band\" style=\"background-color: transparent; padding-top: 0; padding-bottom: 50px;\"><div class=\"x-container\">\n  <div  class=\"x-column x-sm x-1-2\" style=\"\" >\n    <div  class=\"x-counter\" data-x-element=\"counter\" data-x-params=\"{&quot;numEnd&quot;:40,&quot;numSpeed&quot;:1500}\"  ><div class=\"number-wrap w-h\" style=\"color: #272727;\"><span class=\"number\">0<\/span><span class=\"suffix\">+<\/span><\/div><span class=\"text-below\" >Shortcodes<\/span><\/div>\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n    <pre  class=\"x-code man\" ><code>&#091;counter num_start=\"0\" num_end=\"40\" num_suffix=\"+\" num_speed=\"1500\" num_color=\"#272727\" text_below=\"Shortcodes\"&#093;<\/code><\/pre>\n  <\/div>\n  <div  class=\"x-visibility x-visible-phone\" >\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n  <\/div>\n  <div  class=\"x-column x-sm x-1-2 last\" style=\"\" >\n    <div  class=\"x-counter\" data-x-element=\"counter\" data-x-params=\"{&quot;numEnd&quot;:14,&quot;numSpeed&quot;:1500}\"  ><div class=\"number-wrap w-h\" style=\"color: #272727;\"><span class=\"number\">0<\/span><\/div><span class=\"text-below\" >Counters<\/span><\/div>\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n    <pre  class=\"x-code man\" ><code>&#091;counter num_start=\"0\" num_end=\"14\" num_speed=\"1500\" num_color=\"#272727\" text_below=\"Counters\"&#093;<\/code><\/pre>\n  <\/div>\n<\/div><\/div>\n<h2  class=\"h-custom-headline h5 accent\" ><span>Number Prefix and Suffix<\/span><\/h2>\n<p>The shortcode comes with two parameters (<code>num_prefix<\/code> and <code>num_suffix<\/code>) that allow you to place symbols or additional text before or after your number.<\/p>\n<div id=\"x-content-band-2\" class=\"x-content-band\" style=\"background-color: transparent; padding-top: 0; padding-bottom: 50px;\"><div class=\"x-container\">\n  <div  class=\"x-column x-sm x-1-2\" style=\"\" >\n    <div  class=\"x-counter\" data-x-element=\"counter\" data-x-params=\"{&quot;numEnd&quot;:817,&quot;numSpeed&quot;:1500}\"  ><div class=\"number-wrap w-h\" style=\"color: #272727;\"><span class=\"prefix\">-<\/span><span class=\"number\">0<\/span><\/div><span class=\"text-below\" >Points<\/span><\/div>\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n    <pre  class=\"x-code man\" ><code>&#091;counter num_start=\"0\" num_end=\"817\" num_prefix=\"-\" num_speed=\"1500\" num_color=\"#272727\" text_below=\"Points\"&#093;<\/code><\/pre>\n  <\/div>\n  <div  class=\"x-visibility x-visible-phone\" >\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n  <\/div>\n  <div  class=\"x-column x-sm x-1-2 last\" style=\"\" >\n    <div  class=\"x-counter\" data-x-element=\"counter\" data-x-params=\"{&quot;numEnd&quot;:463,&quot;numSpeed&quot;:1500}\"  ><div class=\"number-wrap w-h\" style=\"color: #272727;\"><span class=\"number\">0<\/span><span class=\"suffix\">*<\/span><\/div><span class=\"text-below\" >Widgets<\/span><\/div>\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n    <pre  class=\"x-code man\" ><code>&#091;counter num_start=\"0\" num_end=\"463\" num_suffix=\"*\" num_speed=\"1500\" num_color=\"#272727\" text_below=\"Widgets\"&#093;<\/code><\/pre>\n  <\/div>\n<\/div><\/div>\n<h2  class=\"h-custom-headline h5 accent\" ><span>Place Text Before and After<\/span><\/h2>\n<p>Additionally, the <code>text_above<\/code> and <code>text_below<\/code> parameters give you the ability to provide a context for what your numbers are meant to convey.<\/p>\n<div id=\"x-content-band-3\" class=\"x-content-band\" style=\"background-color: transparent; padding-top: 0; padding-bottom: 50px;\"><div class=\"x-container\">\n  <div  class=\"x-column x-sm x-1-2\" style=\"\" >\n    <div  class=\"x-counter\" data-x-element=\"counter\" data-x-params=\"{&quot;numEnd&quot;:2716,&quot;numSpeed&quot;:1500}\"  ><span class=\"text-above\" >We Have<\/span><div class=\"number-wrap w-h\" style=\"color: #272727;\"><span class=\"number\">0<\/span><\/div><span class=\"text-below\" >Employees<\/span><\/div>\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n    <pre  class=\"x-code man\" ><code>&#091;counter num_start=\"0\" num_end=\"2716\" num_speed=\"1500\" num_color=\"#272727\" text_above=\"We Have\" text_below=\"Employees\"&#093;<\/code><\/pre>\n  <\/div>\n  <div  class=\"x-visibility x-visible-phone\" >\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n  <\/div>\n  <div  class=\"x-column x-sm x-1-2 last\" style=\"\" >\n    <div  class=\"x-counter\" data-x-element=\"counter\" data-x-params=\"{&quot;numEnd&quot;:128,&quot;numSpeed&quot;:1500}\"  ><span class=\"text-above\" >Across<\/span><div class=\"number-wrap w-h\" style=\"color: #272727;\"><span class=\"number\">0<\/span><\/div><span class=\"text-below\" >Countries<\/span><\/div>\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n    <pre  class=\"x-code man\" ><code>&#091;counter num_start=\"0\" num_end=\"128\" num_speed=\"1500\" num_color=\"#272727\" text_above=\"Across\" text_below=\"Countries\"&#093;<\/code><\/pre>\n  <\/div>\n<\/div><\/div>\n<h2  class=\"h-custom-headline h5 accent\" ><span>Add a Little Color<\/span><\/h2>\n<p>Spice up your numbers with a little color using the <code>num_color<\/code> parameter. Colors can be used to help convey a statistic more clearly and generate interest.<\/p>\n<div id=\"x-content-band-4\" class=\"x-content-band\" style=\"background-color: transparent; padding-top: 0; padding-bottom: 50px;\"><div class=\"x-container\">\n  <div  class=\"x-column x-sm x-1-2\" style=\"\" >\n    <div  class=\"x-counter\" data-x-element=\"counter\" data-x-params=\"{&quot;numEnd&quot;:132,&quot;numSpeed&quot;:1500}\"  ><span class=\"text-above\" >It Is<\/span><div class=\"number-wrap w-h\" style=\"color: #3498db;\"><span class=\"prefix\">-<\/span><span class=\"number\">0<\/span><\/div><span class=\"text-below\" >Degrees<\/span><\/div>\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n    <pre  class=\"x-code man\" ><code>&#091;counter num_start=\"0\" num_end=\"132\" num_prefix=\"-\" num_speed=\"1500\" num_color=\"#3498db\" text_above=\"It Is\" text_below=\"Degrees\"&#093;<\/code><\/pre>\n  <\/div>\n  <div  class=\"x-visibility x-visible-phone\" >\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n  <\/div>\n  <div  class=\"x-column x-sm x-1-2 last\" style=\"\" >\n    <div  class=\"x-counter\" data-x-element=\"counter\" data-x-params=\"{&quot;numEnd&quot;:272,&quot;numSpeed&quot;:1500}\"  ><span class=\"text-above\" >We Made<\/span><div class=\"number-wrap w-h\" style=\"color: #2ecc71;\"><span class=\"number\">0<\/span><\/div><span class=\"text-below\" >Dollars<\/span><\/div>\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n    <pre  class=\"x-code man\" ><code>&#091;counter num_start=\"0\" num_end=\"272\" num_speed=\"1500\" num_color=\"#2ecc71\" text_above=\"We Made\" text_below=\"Dollars\"&#093;<\/code><\/pre>\n  <\/div>\n<\/div><\/div>\n<h2  class=\"h-custom-headline h5 accent\" ><span>Time it Just Right<\/span><\/h2>\n<p>Use the <code>num_speed<\/code> parameter to determine how long you want your counter to increment. This parameter accepts time in milliseconds, so if you would like for it to last for two seconds, you would enter in &#8220;2000.&#8221;<\/p>\n<div id=\"x-content-band-5\" class=\"x-content-band\" style=\"background-color: transparent; padding-top: 0; padding-bottom: 50px;\"><div class=\"x-container\">\n  <div  class=\"x-column x-sm x-1-2\" style=\"\" >\n    <div  class=\"x-counter\" data-x-element=\"counter\" data-x-params=\"{&quot;numEnd&quot;:3000,&quot;numSpeed&quot;:3000}\"  ><span class=\"text-above\" >This is<\/span><div class=\"number-wrap w-h\" style=\"color: #272727;\"><span class=\"number\">0<\/span><span class=\"suffix\">ms<\/span><\/div><\/div>\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n    <pre  class=\"x-code man\" ><code>&#091;counter num_start=\"0\" num_end=\"3000\" num_suffix=\"ms\" num_speed=\"3000\" num_color=\"#272727\" text_above=\"This is\"&#093;<\/code><\/pre>\n  <\/div>\n  <div  class=\"x-visibility x-visible-phone\" >\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n  <\/div>\n  <div  class=\"x-column x-sm x-1-2 last\" style=\"\" >\n    <div  class=\"x-counter\" data-x-element=\"counter\" data-x-params=\"{&quot;numEnd&quot;:5000,&quot;numSpeed&quot;:5000}\"  ><span class=\"text-above\" >This is<\/span><div class=\"number-wrap w-h\" style=\"color: #272727;\"><span class=\"number\">0<\/span><span class=\"suffix\">ms<\/span><\/div><\/div>\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n    <pre  class=\"x-code man\" ><code>&#091;counter num_start=\"0\" num_end=\"5000\" num_suffix=\"ms\" num_speed=\"5000\" num_color=\"#272727\" text_above=\"This is\"&#093;<\/code><\/pre>\n  <\/div>\n<\/div><\/div>\n<h2  class=\"h-custom-headline h5 accent\" ><span>Get Creative<\/span><\/h2>\n<p>You can even include icons as part of your number suffix or prefix. To do so, you&#8217;ll need to input the appropriate HTML for the icon you want. First, find the icon you want (e.g. &#8220;camera-retro&#8221;) and then input the following HTML: <code>&lt;i class='x-icon-camera-retro' data-x-icon='&#xf083;'&gt;&lt;\/i&gt;<\/code>. Make sure to use single quotes around the class so that it gets output properly in the shortcode.<\/p>\n<div id=\"x-content-band-6\" class=\"x-content-band\" style=\"background-color: transparent; padding-top: 0; padding-bottom: 50px;\"><div class=\"x-container\">\n  <div  class=\"x-column x-sm x-1-2\" style=\"\" >\n    <div  class=\"x-counter\" data-x-element=\"counter\" data-x-params=\"{&quot;numEnd&quot;:4891,&quot;numSpeed&quot;:1500}\"  ><span class=\"text-above\" >We Took<\/span><div class=\"number-wrap w-h\" style=\"color: #9b59b6;\"><span class=\"prefix\"><i class='x-icon-camera-retro'><\/i> <\/span><span class=\"number\">0<\/span><\/div><span class=\"text-below\" >Pictures<\/span><\/div>\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n    <pre  class=\"x-code man\" ><code>&#091;counter num_start=\"0\" num_end=\"4891\" num_prefix=\"&lt;i class='x-icon-camera-retro' data-x-icon='&#xf083;'&gt;&lt;\/i&gt; \" num_speed=\"1500\" num_color=\"#9b59b6\" text_above=\"We Took\" text_below=\"Pictures\"&#093;<\/code><\/pre>\n  <\/div>\n  <div  class=\"x-visibility x-visible-phone\" >\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n  <\/div>\n  <div  class=\"x-column x-sm x-1-2 last\" style=\"\" >\n    <div  class=\"x-counter\" data-x-element=\"counter\" data-x-params=\"{&quot;numEnd&quot;:823,&quot;numSpeed&quot;:1500}\"  ><span class=\"text-above\" >We Have<\/span><div class=\"number-wrap w-h\" style=\"color: #f1c40f;\"><span class=\"number\">0<\/span><span class=\"suffix\"> <i class='x-icon-lightbulb-o'><\/i><\/span><\/div><span class=\"text-below\" >Big Ideas<\/span><\/div>\n    <hr  class=\"x-gap\" style=\"margin: 1.313em 0 0 0;\">\n    <pre  class=\"x-code man\" ><code>&#091;counter num_start=\"0\" num_end=\"823\" num_suffix=\" &lt;i class='x-icon-lightbulb-o' data-x-icon='&#xf0eb;'&gt;&lt;\/i&gt;\" num_speed=\"1500\" num_color=\"#f1c40f\" text_above=\"We Have\" text_below=\"Big Ideas\"&#093;<\/code><\/pre>\n  <\/div>\n<\/div><\/div>\n<h2  class=\"h-custom-headline h5 accent\" ><span>Options<\/span><\/h2>\n<ul class=\"x-ul-icons\"  >\n<li class=\"x-li-icon\"  ><i class=\"x-icon-chevron-circle-right\" aria-hidden=\"true\" data-x-icon-s=\"&#xf138;\"  ><\/i><strong>id<\/strong>: add a unique ID to the shortcode.<\/li>\n<li class=\"x-li-icon\"  ><i class=\"x-icon-chevron-circle-right\" aria-hidden=\"true\" data-x-icon-s=\"&#xf138;\"  ><\/i><strong>class<\/strong>: add a class or multiple classes to the shortcode. <\/li>\n<li class=\"x-li-icon\"  ><i class=\"x-icon-chevron-circle-right\" aria-hidden=\"true\" data-x-icon-s=\"&#xf138;\"  ><\/i><strong>style<\/strong>: add inline styles to the shortcode.<\/li>\n<li class=\"x-li-icon\"  ><i class=\"x-icon-chevron-circle-right\" aria-hidden=\"true\" data-x-icon-s=\"&#xf138;\"  ><\/i><strong>num_start<\/strong>: include the starting number for the counter.<\/li>\n<li class=\"x-li-icon\"  ><i class=\"x-icon-chevron-circle-right\" aria-hidden=\"true\" data-x-icon-s=\"&#xf138;\"  ><\/i><strong>num_end<\/strong>: include the ending number for the counter.<\/li>\n<li class=\"x-li-icon\"  ><i class=\"x-icon-chevron-circle-right\" aria-hidden=\"true\" data-x-icon-s=\"&#xf138;\"  ><\/i><strong>num_prefix<\/strong>: prefix the number with text or symbols.<\/li>\n<li class=\"x-li-icon\"  ><i class=\"x-icon-chevron-circle-right\" aria-hidden=\"true\" data-x-icon-s=\"&#xf138;\"  ><\/i><strong>num_suffix<\/strong>: suffix the number with text or symbols.<\/li>\n<li class=\"x-li-icon\"  ><i class=\"x-icon-chevron-circle-right\" aria-hidden=\"true\" data-x-icon-s=\"&#xf138;\"  ><\/i><strong>num_color<\/strong>: optionally include a color for your number.<\/li>\n<li class=\"x-li-icon\"  ><i class=\"x-icon-chevron-circle-right\" aria-hidden=\"true\" data-x-icon-s=\"&#xf138;\"  ><\/i><strong>text_above<\/strong>: include text to appear above the number.<\/li>\n<li class=\"x-li-icon\"  ><i class=\"x-icon-chevron-circle-right\" aria-hidden=\"true\" data-x-icon-s=\"&#xf138;\"  ><\/i><strong>text_below<\/strong>: include text to appear below the number.<\/li>\n<li class=\"x-li-icon\"  ><i class=\"x-icon-chevron-circle-right\" aria-hidden=\"true\" data-x-icon-s=\"&#xf138;\"  ><\/i><strong>text_color<\/strong>: optionally include a color for the text above and below the number.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The &#091;counter&#093; shortcode is a wonderfully simple, yet incredibly engaging element that can be used almost anywhere. It&#8217;s great for sharing statistics or tidbits of information about your company or service. The &#091;counter&#093; shortcode will not begin incrementing until it has come into the viewport of the screen so that you can see the effect take place. Keep scrolling down &#8230;<\/p>\n","protected":false},"author":16,"featured_media":0,"parent":259,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0},"_links":{"self":[{"href":"https:\/\/demo.theme.co\/icon-1\/wp-json\/wp\/v2\/pages\/7398"}],"collection":[{"href":"https:\/\/demo.theme.co\/icon-1\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.theme.co\/icon-1\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/demo.theme.co\/icon-1\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.theme.co\/icon-1\/wp-json\/wp\/v2\/comments?post=7398"}],"version-history":[{"count":0,"href":"https:\/\/demo.theme.co\/icon-1\/wp-json\/wp\/v2\/pages\/7398\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/demo.theme.co\/icon-1\/wp-json\/wp\/v2\/pages\/259"}],"wp:attachment":[{"href":"https:\/\/demo.theme.co\/icon-1\/wp-json\/wp\/v2\/media?parent=7398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}