How to add classes to a specific bean w/ display suite template On the website home page that I'm working on, we have 4 call-to-actions.

Below is the DS template file which is used when rendering each of them:

&lt;?php

/**
* @file
* Display Suite 2 column template.
*/
?&gt;

&lt;&lt;?php print $layout_wrapper; print $layout_attributes; ?&gt; class="ds-2col &lt;?php print $classes;?&gt; cta-body clearfix" style="background: #&lt;?php print $field_bg_colour[0]['value'] ?&gt;"&gt;

&lt;?php if (isset($title_suffix['contextual_links'])): ?&gt;
&lt;?php print render($title_suffix['contextual_links']); ?&gt;
&lt;?php endif; ?&gt;

&lt;!-- If there's a more link, add a link --&gt;
&lt;?php if (isset($field_more_link)): ?&gt;
  &lt;a href="&lt;?php print $field_more_link[0]['url']; ?&gt;"&gt;
&lt;?php endif; ?&gt;

  &lt;&lt;?php print $left_wrapper ?&gt; class="group-left&lt;?php print $left_classes; ?&gt;"&gt;
    &lt;?php print $left; ?&gt;
  &lt;/&lt;?php print $left_wrapper ?&gt;&gt;

  &lt;&lt;?php print $right_wrapper ?&gt; class="group-right&lt;?php print $right_classes; ?&gt;"&gt;
    &lt;h2 class="title"&gt;&lt;?php print $title ?&gt;&lt;/h2&gt;
    &lt;span class="cta-text"&gt;
      &lt;?php print $right; ?&gt;
    &lt;/span&gt;
  &lt;/&lt;?php print $right_wrapper ?&gt;&gt;

  &lt;div class="clear"&gt;&lt;/div&gt;

&lt;!-- And close the link --&gt;
&lt;?php if (isset($field_more_link)): ?&gt;
  &lt;/a&gt;
&lt;?php endif; ?&gt;

&lt;/&lt;?php print $layout_wrapper ?&gt;&gt;

&lt;?php if (!empty($drupal_render_children)): ?&gt;
  &lt;?php print $drupal_render_children ?&gt;
&lt;?php endif; ?&gt;


Currently I'm adding a margin-right to each of these, but would like to remove the margin-right on the even number call-to-actions - so my layout works.

Is there any way I can add an odd/even zebra class or a better way to do this?

Many thanks
A friend helped me solve this one. All I needed was the following PHP as a container class.

&lt;?php print $zebra; ?&gt;


I can now style the .odd containers!

Thanks all