• Hello!
    Can I switch any blocks on front page?
    For example:
    I want to place the block “Our team” before “About us”.

    Can I get this functions in PRO version?

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

    Section ordering available in pro version of theme.
    Also check this for more info: https://docs.themeisle.com/article/65-zerif-lite-versus-zerif-pro

    Hope that helps.

    Regards,
    Gourav

    In my opinion you can switch blocks on front page in Lite version, but you will still have standard order od sections in Customization menu on the left side in wordpress.

    Thread Starter nickanvar

    (@nickanvar)

    ok, I did it. In Pro version this is doesn’t work right.

    In front-page.php lanes 184-269
    before:

    <?php
    
    	/* OUR FOCUS SECTION */
    
    	$zerif_ourfocus_show = get_theme_mod('zerif_ourfocus_show');
    
    	if( isset($zerif_ourfocus_show) && $zerif_ourfocus_show != 1 ):
    
    	zerif_before_our_focus_trigger();
    
    		get_template_part( 'sections/our_focus' );
    
    	zerif_after_our_focus_trigger();
    
    	endif;
    
    	/* RIBBON WITH BOTTOM BUTTON */
    
    	get_template_part( 'sections/ribbon_with_bottom_button' );
    
            /* OUR TEAM */
    
    	$zerif_ourteam_show = get_theme_mod('zerif_ourteam_show');
    
    	if( isset($zerif_ourteam_show) && $zerif_ourteam_show != 1 ):
    
    	zerif_before_our_team_trigger();
    
    		get_template_part( 'sections/our_team' );
    
    	zerif_after_our_team_trigger();
    
    	endif;
    
    	/* LATEST NEWS */
    	$zerif_latestnews_show = get_theme_mod('zerif_latestnews_show');
    
    	if( isset($zerif_latestnews_show) && $zerif_latestnews_show != 1 ):
    
    	zerif_before_latest_news_trigger();
    
    		get_template_part( 'sections/latest_news' );
    
    	zerif_after_latest_news_trigger();
    
    	endif;
    
    	/* ABOUT US */
    
    	$zerif_aboutus_show = get_theme_mod('zerif_aboutus_show');
    
    	if( isset($zerif_aboutus_show) && $zerif_aboutus_show != 1 ):
    
    	zerif_before_about_us_trigger();
    
    		get_template_part( 'sections/about_us' );
    
    	zerif_after_about_us_trigger();
    
    	endif;	
    
    	/* TESTIMONIALS */
    
    	$zerif_testimonials_show = get_theme_mod('zerif_testimonials_show');
    
    	if( isset($zerif_testimonials_show) && $zerif_testimonials_show != 1 ):
    
    	zerif_before_testimonials_trigger();
    
    		get_template_part( 'sections/testimonials' );
    
    	zerif_after_testimonials_trigger();
    
    	endif;
    
    	/* RIBBON WITH RIGHT SIDE BUTTON */
    
    	get_template_part( 'sections/ribbon_with_right_button' );
    
    		/* CONTACT US */
    		$zerif_contactus_show = get_theme_mod('zerif_contactus_show');
    
    		if( isset($zerif_contactus_show) && $zerif_contactus_show != 1 ):
    			?>

    After:

    <?php
    
    	/* OUR TEAM */
    
    	$zerif_ourteam_show = get_theme_mod('zerif_ourteam_show');
    
    	if( isset($zerif_ourteam_show) && $zerif_ourteam_show != 1 ):
    
    	zerif_before_our_team_trigger();
    
    		get_template_part( 'sections/our_team' );
    
    	zerif_after_our_team_trigger();
    
    	endif;
    
    	/* LATEST NEWS */
    	$zerif_latestnews_show = get_theme_mod('zerif_latestnews_show');
    
    	if( isset($zerif_latestnews_show) && $zerif_latestnews_show != 1 ):
    
    	zerif_before_latest_news_trigger();
    
    		get_template_part( 'sections/latest_news' );
    
    	zerif_after_latest_news_trigger();
    
    	endif;
    
    	/* OUR FOCUS SECTION */
    
    	$zerif_ourfocus_show = get_theme_mod('zerif_ourfocus_show');
    
    	if( isset($zerif_ourfocus_show) && $zerif_ourfocus_show != 1 ):
    
    	zerif_before_our_focus_trigger();
    
    		get_template_part( 'sections/our_focus' );
    
    	zerif_after_our_focus_trigger();
    
    	endif;
    
    	/* RIBBON WITH BOTTOM BUTTON */
    
    	get_template_part( 'sections/ribbon_with_bottom_button' );
    
    	/* ABOUT US */
    
    	$zerif_aboutus_show = get_theme_mod('zerif_aboutus_show');
    
    	if( isset($zerif_aboutus_show) && $zerif_aboutus_show != 1 ):
    
    	zerif_before_about_us_trigger();
    
    		get_template_part( 'sections/about_us' );
    
    	zerif_after_about_us_trigger();
    
    	endif;	
    
    	/* TESTIMONIALS */
    
    	$zerif_testimonials_show = get_theme_mod('zerif_testimonials_show');
    
    	if( isset($zerif_testimonials_show) && $zerif_testimonials_show != 1 ):
    
    	zerif_before_testimonials_trigger();
    
    		get_template_part( 'sections/testimonials' );
    
    	zerif_after_testimonials_trigger();
    
    	endif;
    
    	/* RIBBON WITH RIGHT SIDE BUTTON */
    
    	get_template_part( 'sections/ribbon_with_right_button' );
    
    		/* CONTACT US */
    		$zerif_contactus_show = get_theme_mod('zerif_contactus_show');
    
    		if( isset($zerif_contactus_show) && $zerif_contactus_show != 1 ):
    			?>

    I hope it will be usefull someone else.

    Thread Starter nickanvar

    (@nickanvar)

    and Then check your widgets in WP-menu.

    It’s good that you had the knowledge to figure it out!

    Best regards,
    Uriahs

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to switch the blocks on front page?’ is closed to new replies.