F
F
freeman02042017-02-13 14:23:11
PHP
freeman0204, 2017-02-13 14:23:11

How to make a cycle in WP if there are 3 items but they have different classes (and you need to leave only 1 item for the cycle)?

In the first one just col-md-4 and in 2 and 3 col-md-4 col-md-offset-4. If I leave only one block for the loop, then I will break the styles, since there will not be enough class or the col-md-offset-4 class will be on all item. How to be?

<section id="modals">
      <div class="line clearfix">
          <img src="img/catalog.png" alt="">
          <div class="col-md-4 ">
              <div class="item">
                  <div class="section-head">
                      Условия доставки
                  </div>
                
              </div>

          </div>
          <div class="col-md-4 col-md-offset-4 ">
              <div class="item">
                  <div class="section-head">
                      Наш бутик
                  </div>
               
              </div>
          </div>
      </div>
      <div class="line clearfix last">
          <img src="img/contact.png" alt="">
          <div class="col-md-4 col-md-offset-4 ">
              <div class="item">
                  <div class="section-head">
                      Напишите или позвоните нам
                  </div>
               
              </div>
          </div>
      </div>
  </section>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question