{"id":6222665,"date":"2015-06-11T19:18:47","date_gmt":"2015-06-11T19:18:47","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/chaging\/"},"modified":"2016-08-30T14:21:13","modified_gmt":"2016-08-30T14:21:13","slug":"chaging","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/chaging\/","title":{"rendered":"changing home page span boxes"},"content":{"rendered":"<p>Hi guys, I was wondering how to change the span3 containers inside wpeden-bs-services: at the moment they are all the same &#8211; ie they have the same content at the moment. Admittedly my php is what it is, extremely basic but I know other programming languages so i&#8217;ll pick it up hopefully, this is what the template looks like:<\/p>\n<pre><code>&lt;?php for($i=1;$i&lt;=4;$i++){ ?&gt;\n\n        &lt;div class=&quot;span3&quot;&gt;\n\n        &lt;?php $tpid = (int)sensitive_get_theme_opts(&#039;home_featured_page_&#039;.$i); $intropage = get_page($tpid); $introcontent = strip_tags(strip_shortcodes($intropage-&gt;post_content),&quot;p,br&quot;); if (preg_match(&#039;\/^.{1,80}\\b\/s&#039;, $introcontent, $match)) $introcontent = $match[0]; else $introcontent = substr($introcontent,0,80);  ?&gt;\n\n        &lt;div class=&quot;about well&quot;&gt;\n\n          &lt;a href=&quot;&lt;?php echo get_permalink($intropage-&gt;ID); ?&gt;&quot;&gt;&lt;?php sensitive_thumb($intropage,array(500,300), array(&#039;class&#039;=&gt;&#039;img&#039;)); ?&gt;&lt;\/a&gt;\n\n          &lt;div class=&quot;entry-content&quot;&gt;\n\n          &lt;h2&gt;&lt;?php echo $intropage-&gt;post_title; ?&gt;&lt;\/h2&gt;\n\n          &lt;p&gt;&lt;?php echo $introcontent; ?&gt;&lt;\/p&gt;\n\n          &lt;\/div&gt;\n\n          &lt;a href=&quot;&lt;?php echo get_permalink($intropage-&gt;ID); ?&gt;&quot; class=&quot;btn &lt;?php echo sensitive_get_theme_opts(&#039;button_style&#039;,&#039;btn-info&#039;); ?&gt; btn-block&quot;&gt;View details&lt;\/a&gt;\n\n        &lt;\/div&gt;  \n\n        &lt;\/div&gt;<\/code><\/pre>\n<p>Basically I need to change the text and have links to other pages that are not there as yet<\/p>\n","protected":false},"template":"","class_list":["post-6222665","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6222665","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6222665\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6222665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}