Home Forums HashOne Add more page in Featured section and also in Service section

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2523
    seline07
    Participant

    Hi !

    Actually I can have 4 feature page in the Featuring Section and 6 in the Service section but Id’ like to know if it’s possible ti have more (like 10 for example) ?

    Thank you

    Celine

    #2549
    Hash
    Keymaster

    Sorry, it it not possible. But you can ask for paid customization if you want.

    #2675
    User7
    Participant

    hi seline,

    in the section-feature.php: for example write 8, if you want 7
    for( $i = 1; $i < 8; $i++ ){

    in the section-service.php: for example write 8, if you want 7
    for( $i = 1; $i < 8; $i++ ){

    #2698
    seline07
    Participant

    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.

    #2705
    User7
    Participant

    you must open the “customizer.php” and under “service pages” change this code:
    for( $i = 1; $i < 7; $i++ ){

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.