Support » Theme: Llorix One Lite » Moving Sections

  • I’m trying to figure out how to move around some of the sections on the front page (putting Latest News at the top, for instance). I searched here and saw a few others ask, but I haven’t seen any clear answer…For some reason, I can’t seem to find out where this is done.

    Any help would be greatly appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello there,

    Unfortunately, this option is not available on Llorix one lite.

    you can to do some custom coding to reorder sections on front page.

    Best Regards
    Harshvardhan

    Hello Harshvadhan,

    I’m trying to get it done with a child theme + custom coding.

    No luck so far – any hints?

    <?php
    /**
     * Front page
     *
     * @package llorix-one-lite
     */
    
    get_header();
    
    ?>
    
    <!-- =========================
    	PRE LOADER
    ============================== -->
    <?php
    
    global $wp_customize;
    
    if ( ! isset( $wp_customize ) ) :
    
    	$llorix_one_lite_disable_preloader = get_theme_mod( 'llorix_one_lite_disable_preloader' );
    
    	if ( isset( $llorix_one_lite_disable_preloader ) && ( $llorix_one_lite_disable_preloader != 1 ) ) :
    
    		echo '<div class="preloader">';
    		echo '<div class="status">&nbsp;</div>';
    		echo '</div>';
    
    	endif;
    
    endif;
    
    llorix_one_lite_get_template_part( apply_filters( 'llorix_one_lite_header_layout', '/sections/llorix_one_lite_header_section' ) );
    
    ?>
    </div>
    <!-- /END COLOR OVER IMAGE -->
    </header>
    <!-- /END HOME / HEADER  -->
    
    <div itemprop id="content" class="content-wrap" role="main">
    
    	<?php
    
    	$sections_array = apply_filters(
    		'llorix_one_companion_sections_filter',
    		array(
    			'sections/llorix_one_lite_logos_section',
    			'sections/llorix_one_lite_our_story_section',
    			'sections/llorix_one_lite_content_section',
    			'sections/llorix_one_lite_ribbon_section',
    			'sections/llorix_one_lite_latest_news_section',
    			'sections/llorix_one_lite_contact_info_section',
    			'sections/llorix_one_lite_map_section',
    		)
    	);
    
    	if ( ! empty( $sections_array ) ) {
    		foreach ( $sections_array as $section ) {
    			llorix_one_lite_get_template_part( $section );
    		}
    	}
    	?>
    
    </div><!-- .content-wrap -->
    
    <?php
    
    get_footer();
    
    ?>

    When there is no option, you have to do it by hand

    front-page.php file

    if ( ! empty( $sections_array ) ) {
    
    		foreach ( $sections_array as $section ) {
    			//echo $section;
    			//llorix_one_lite_get_template_part( $section );
    		}
    
    // move the sections as you want :P
    
    llorix_one_lite_get_template_part( 'sections/llorix_one_lite_our_story_section' ); 
    llorix_one_lite_get_template_part( 'our-services-section' ); 
    llorix_one_lite_get_template_part( 'our-team-section' ); 
    llorix_one_lite_get_template_part( 'happy-customers-section' ); 
    llorix_one_lite_get_template_part( 'sections/llorix_one_lite_content_section' ); 
    llorix_one_lite_get_template_part( 'sections/llorix_one_lite_ribbon_section' );
    llorix_one_lite_get_template_part( 'sections/llorix_one_lite_latest_news_section' ); 
    llorix_one_lite_get_template_part( 'sections/llorix_one_lite_contact_info_section' ); 
    llorix_one_lite_get_template_part( 'sections/llorix_one_lite_map_section' );
    
    	} 
    • This reply was modified 2 years, 1 month ago by mrebot.
    • This reply was modified 2 years, 1 month ago by mrebot.
    • This reply was modified 2 years, 1 month ago by mrebot.
    • This reply was modified 2 years, 1 month ago by mrebot.
    • This reply was modified 2 years, 1 month ago by mrebot.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Moving Sections’ is closed to new replies.