Title: Identify alternate boxes
Last modified: August 21, 2016

---

# Identify alternate boxes

 *  [N1ghteyes](https://wordpress.org/support/users/n1ghteyes/)
 * (@n1ghteyes)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/identify-alternate-boxes/)
 * Hi All,
 * For anyone with a block group, needing to identify alternate rows, you can use
   this.
 * in templates/_partials/blocks.tpl directly under
 * `<div class="content_block_wrapper">`
 * add the following:
 *     ```
       {% set text = "odd" %}
               {% for box in boxes %}
   
                   {% if text == "odd" %}
                       {% set text = "even" %}
                   {% else %}
                       {% set text = "odd" %}
                   {% endif %}
       ```
   
 * and then alter
 * `<div class="content_block {{ box.width }} {{ box.template }}" style="background-
   color:{{ box.bgcolor }};">`
 * to
 * `<div class="content_block {{text}} {{ box.width }} {{ box.template }}" style
   ="background-color:{{ box.bgcolor }};">`
 * [http://wordpress.org/plugins/boxer/](http://wordpress.org/plugins/boxer/)

The topic ‘Identify alternate boxes’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/boxer_c9cbc6.svg)
 * [WP Boxer](https://wordpress.org/plugins/boxer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/boxer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/boxer/)
 * [Active Topics](https://wordpress.org/support/plugin/boxer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/boxer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/boxer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [N1ghteyes](https://wordpress.org/support/users/n1ghteyes/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/identify-alternate-boxes/)
 * Status: not resolved