Kaynağa Gözat

testimonials, title color

Juan Carlos 5 yıl önce
ebeveyn
işleme
975bc6894c
3 değiştirilmiş dosya ile 10 ekleme ve 39 silme
  1. 5 0
      css/main.css
  2. 1 1
      functions.php
  3. 4 38
      index.php

+ 5 - 0
css/main.css

@@ -3989,6 +3989,11 @@ a:focus:not([href]):not([tabindex]), a:hover:not([href]):not([tabindex]) {
   margin-bottom: 0 !important;
 }
 
+#testimonials h2{
+
+  color: #fff;
+}
+
 .round-pic{
   border-radius: 50%;
 }

+ 1 - 1
functions.php

@@ -472,7 +472,7 @@ function testimonials() {
       'exclude_from_search' => false,
       'publicly_queryable' => true,
       'capability_type' => 'page',
-      'menu_icon' => 'dashicons-smiley',
+      'menu_icon' => 'dashicons-format-quote,
    );
    register_post_type( 'testimonials', $args );
 }

+ 4 - 38
index.php

@@ -400,7 +400,7 @@
 
 
     <!-- Single testimonial Start -->
-    <div class="single-testimonial-area">
+    <div  id="testimonials" class="single-testimonial-area">
       <div class="container">
 
         <div class="row">
@@ -409,7 +409,7 @@
           </div>
         </div>
 
-
+        <div id="single-testimonial-item" class="owl-carousel">
 
 
         <?php
@@ -420,7 +420,6 @@
               'posts_per_page' => 100
           );
           $posts = new WP_Query($args);
-          $counter = 1;
 
 
           while ($posts -> have_posts()) {
@@ -428,7 +427,7 @@
 
               ?>
 
-              <div id="single-testimonial-item" class="owl-carousel">
+
                 <!-- Single testimonial Item -->
                 <div class="item">
                   <div class="row justify-content-md-center">
@@ -449,15 +448,8 @@
                   </div>
                 </div>
 
-            <?php if ($counter && $counter % 6 == 0): ?>
-
-              </ul>
-              <ul class="row portfolio list-unstyled justify-content-center" id="grid-clients">
-
-            <?php endif;
-
-            $counter++;
 
+          <?php
           } //  while ( $posts -> have_posts() )
           wp_reset_postdata();
 
@@ -465,32 +457,6 @@
           ?>
 
 
-
-        <div id="single-testimonial-item" class="owl-carousel">
-          <!-- Single testimonial Item -->
-          <div class="item">
-            <div class="row justify-content-md-center">
-              <div class="col-lg-8 col-md-12 col-xs-12 col-md-auto">
-                <div class="testimonial-inner text-md-center">
-                  <blockquote>
-                    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Id ipsam, non ut molestiae rerum praesentium repellat debitis iure reiciendis, eius culpa beatae commodi facere ad numquam. Quisquam dignissimos similique sunt iure fugit, omnis vel cupiditate repellendus magni nihil molestiae quam, delectus
-                  </blockquote>
-                  <div class="testimonial-images">
-                    <img class="img-circle text-md-center" src="<?php echo get_template_directory_uri(); ?>/img/testimonial/img1.jpg" alt="">
-                  </div>
-                  <div class="testimonial-footer">
-                    <i class="fa fa-user"></i> Arman
-                    <a href="#"> UIdeck</a>
-                  </div>
-                </div>
-              </div>
-            </div>
-          </div>
-
-
-
-
-
         </div>
       </div>
     </div>