Forum Replies Created
Viewing 1 post (of 1 total)
- AuthorPosts
- April 4, 2017 at 6:23 pm in reply to: Add more page in Featured section and also in Service section #2698seline07Participant
Thank you !
I tried to modify it on the home-page template.php here :
<?php if( get_theme_mod('hashone_disable_service_sec') != 'on' ){ ?> <section id="hs-service-post-section" class="hs-section"> <div class="hs-service-left-bg"></div> <div class="hs-container"> <div class="hs-service-posts"> <?php $hashone_service_title = get_theme_mod('hashone_service_title',__('Why Choose Us', 'hashone')); $hashone_service_sub_title = get_theme_mod('hashone_service_sub_title', __('Let us do all things for you', 'hashone')); ?> <?php if($hashone_service_title){ ?> <h2 class="hs-section-title wow fadeInUp" data-wow-duration="0.5s"><?php echo esc_html($hashone_service_title); ?></h2> <?php } ?> <?php if($hashone_service_sub_title){ ?> <div class="hs-section-tagline wow fadeInUp" data-wow-duration="0.5s" data-wow-delay="0.5s"><?php echo esc_html($hashone_service_sub_title); ?></div> <?php } ?> <div class="hs-service-post-wrap"> <?php for( $i = 1; $i < 8; $i++ ){ $hashone_service_page_id = get_theme_mod('hashone_service_page'.$i, $hashone_page); $hashone_service_page_icon = get_theme_mod('hashone_service_page_icon'.$i, 'fa-globe'); if($hashone_service_page_id){ $args = array( 'page_id' => $hashone_service_page_id ); $query = new WP_Query($args); if($query->have_posts()): while($query->have_posts()) : $query->the_post(); $hashone_wow_delay = ($i*300)+300; ?> <div class="hs-clearfix hs-service-post hs-service-post<?php echo $i; ?> wow fadeInDown" data-wow-duration="0.5s" data-wow-delay="<?php echo $hashone_wow_delay; ?>ms"> <div class="hs-service-icon"> <i class="fa <?php echo esc_attr($hashone_service_page_icon); ?>"></i> </div> <div class="hs-service-excerpt"> <h6><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h6> <?php if(has_excerpt()){ echo get_the_excerpt(); }else{ echo hashone_excerpt( get_the_content(), 100); } ?> </div> </div> <?php endwhile; endif; wp_reset_postdata(); } } ?> </div> </div> </div> </section>
But It doesn’t change anything đ I can not put more than 6 pages.
- AuthorPosts
Viewing 1 post (of 1 total)