Jump to content

Smarty foreach target first child how?


Recommended Posts

In this code:

 

{if $infos|@count > 0}
<!-- MODULE Block cmsinfo -->
<div id="cmsinfo_block">
{foreach from=$infos item=info}
<div class="col-xs-6" >{$info.text}</div>
{/foreach}
</div>
 
I want to change col-xs-6 to col-xs-12 for the first child of the div, hot to do that?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...