{"id":5003,"date":"2017-01-31T17:37:56","date_gmt":"2017-01-31T17:37:56","guid":{"rendered":"http:\/\/tommustester.wpengine.com\/?page_id=138"},"modified":"2017-01-31T17:37:56","modified_gmt":"2017-01-31T17:37:56","slug":"instagram","status":"publish","type":"page","link":"https:\/\/psdev2.com\/blog\/elements\/instagram","title":{"rendered":"Elements &#8211; Instagram"},"content":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row&#8221;][vc_column][stack_hero image=&#8221;38&#8243;][vc_column_text]<\/p>\n<h1>Instagram<\/h1>\n<p class=\"lead\">These modular elements can be readily used and customized across pages and in different blocks.<\/p>\n<hr class=\"short\" \/>\n<p>Explore all of Stack&#8217;s modular elements<br \/>\nat the\u00a0<a href=\"\/elements\/\">Element Index Page \u2192<\/a>[\/vc_column_text][\/stack_hero][\/vc_column][\/vc_row][vc_section][vc_row css=&#8221;.vc_custom_1485825445121{margin-bottom: 30px !important;}&#8221;][vc_column width=&#8221;5\/12&#8243;][stack_boxed_content padding=&#8221;boxed&#8211;lg&#8221; background=&#8221;bg&#8211;secondary&#8221;][vc_column_text]<\/p>\n<h4>Basic Feed<\/h4>\n<p>Stack uses the <a href=\"http:\/\/spectragram.js.org\/\" target=\"_blank\">Spectragram<\/a> plugin in conjunction with the Instagram Developer API to create galleries that pull media from your Instagram account.<\/p>\n<p>Once you&#8217;ve set up your developer account and obtained your Client ID and Access token, the feed is controlled by data attributes on the <strong>.instafeed<\/strong> element.<\/p>\n<p>The most basic usage requires the <strong>data-user-name<\/strong> attribtue which specifies the Instagram account to pull images from.[\/vc_column_text][\/stack_boxed_content][\/vc_column][vc_column width=&#8221;7\/12&#8243;][stack_instagram username=&#8221;tommusrhodus&#8221;][\/vc_column][\/vc_row][\/vc_section][vc_section][vc_row css=&#8221;.vc_custom_1485825445121{margin-bottom: 30px !important;}&#8221;][vc_column width=&#8221;5\/12&#8243;][stack_boxed_content padding=&#8221;boxed&#8211;lg&#8221; background=&#8221;bg&#8211;secondary&#8221;][vc_column_text]<\/p>\n<h4>Specifying Count<\/h4>\n<p>By default, the feed will pull in the 12 most recent images on your account. You can specify the exact amount (20 being the maximum) to pull in using the <strong>data-amount<\/strong> attribute. This attribute should be a numerical value from 1 &#8211; 20.<\/p>\n<p>[\/vc_column_text][\/stack_boxed_content][\/vc_column][vc_column width=&#8221;7\/12&#8243;][stack_instagram amount=&#8221;9&#8243; username=&#8221;tommusrhodus&#8221;][\/vc_column][\/vc_row][\/vc_section][vc_section][vc_row css=&#8221;.vc_custom_1485825445121{margin-bottom: 30px !important;}&#8221;][vc_column width=&#8221;5\/12&#8243;][stack_boxed_content padding=&#8221;boxed&#8211;lg&#8221; background=&#8221;bg&#8211;secondary&#8221;][vc_column_text]<\/p>\n<h4>Specifying Grid<\/h4>\n<p>By default, the images will stack vertically on top of one another. To arrange the images in a grid, use the <strong>data-grid<\/strong> attribute. The value will specify how many images will be placed in each row.<\/p>\n<p>In the example below, <strong>data-grid<\/strong> is set to 5, hence each row containes 5 images.[\/vc_column_text][\/stack_boxed_content][\/vc_column][vc_column width=&#8221;7\/12&#8243;][stack_instagram amount=&#8221;10&#8243; grid=&#8221;5&#8243; username=&#8221;tommusrhodus&#8221;][\/vc_column][\/vc_row][\/vc_section][vc_section][vc_row css=&#8221;.vc_custom_1485825445121{margin-bottom: 30px !important;}&#8221;][vc_column width=&#8221;5\/12&#8243;][stack_boxed_content padding=&#8221;boxed&#8211;lg&#8221; background=&#8221;bg&#8211;secondary&#8221;][vc_column_text]<\/p>\n<h4>Gapless Grid<\/h4>\n<p>Add the class <strong>.instafeed&#8211;gapless<\/strong> to the <strong>.instafeed<\/strong> element to remove the gaps between each of the grid times.[\/vc_column_text][\/stack_boxed_content][\/vc_column][vc_column width=&#8221;7\/12&#8243;][stack_instagram layout=&#8221;instafeed&#8211;gapless&#8221; amount=&#8221;9&#8243; username=&#8221;tommusrhodus&#8221;][\/vc_column][\/vc_row][\/vc_section][vc_row][vc_column][vc_column_text]<\/p>\n<h2 style=\"text-align: center;\">Looking for styled Instagram sections?<\/h2>\n<p style=\"text-align: center;\"><a class=\"btn btn--primary type--uppercase\" href=\"\/sections\/instagram\/\">View Instagram Sections<\/a><\/p>\n<p class=\"type--fine-print\" style=\"text-align: center;\">or try the\u00a0<a href=\"http:\/\/tommusrhodus.theme-demo.net\/stackwordpresstheme\" target=\"_blank\">admin demo \u2197<\/a><\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row&#8221;][vc_column][stack_hero image=&#8221;38&#8243;][vc_column_text] Instagram These modular elements can be readily used and customized across pages and in different blocks. Explore all of Stack&#8217;s modular elements at the\u00a0Element Index Page \u2192[\/vc_column_text][\/stack_hero][\/vc_column][\/vc_row][vc_section][vc_row css=&#8221;.vc_custom_1485825445121{margin-bottom: 30px !important;}&#8221;][vc_column width=&#8221;5\/12&#8243;][stack_boxed_content padding=&#8221;boxed&#8211;lg&#8221; background=&#8221;bg&#8211;secondary&#8221;][vc_column_text] Basic Feed Stack uses the Spectragram plugin in conjunction with the Instagram Developer API to create galleries that pull [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":33,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/pages\/5003"}],"collection":[{"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/comments?post=5003"}],"version-history":[{"count":0,"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/pages\/5003\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/pages\/33"}],"wp:attachment":[{"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/media?parent=5003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}