Reply To: Moving the Order of the Widgets Please…

Homepage Community Forums Epik Theme Support Moving the Order of the Widgets Please… Reply To: Moving the Order of the Widgets Please…

#15373
Wes
Moderator

    Ok I see what happened. Thanks for sending me the FTP login, it took me 30 seconds to see exactly what was going on. I didn’t know you replaced the functions/sections in addition to the widget locations, so thats why it didn’t show up in the new order that you’re trying to do.

    It should be fixed now. Each of those widgets in your home.php file are inside a function/section. This labels and groups the widgets together in separate sections that appear on your homepage. So If you look near the top you would have seen this originally –

    		remove_action( 'genesis_loop', 'genesis_do_loop' );
    		add_action( 'genesis_after_header', 'epik_home_loop_helper_top' );
    		add_action( 'genesis_after_header', 'epik_home_loop_helper_welcome' );		
    		add_action( 'genesis_after_header', 'epik_home_loop_helper_middle' );
    		add_action( 'genesis_after_header', 'epik_home_loop_helper_mid_bottom' );
    		add_action( 'genesis_after_header', 'epik_home_loop_helper_bottom' );
    		add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

    The last step was to reorganize the two sections labeled – epik_home_loop_helper_mid_bottom with epik_home_loop_helper_bottom and reverse the order that they appear since you reorganized those two sections in your home.php file. To do so, you would need to replace the code above with the following (I already did it for you) –

    		remove_action( 'genesis_loop', 'genesis_do_loop' );
    		add_action( 'genesis_after_header', 'epik_home_loop_helper_top' );
    		add_action( 'genesis_after_header', 'epik_home_loop_helper_welcome' );		
    		add_action( 'genesis_after_header', 'epik_home_loop_helper_middle' );
    		add_action( 'genesis_after_header', 'epik_home_loop_helper_bottom' );
    		add_action( 'genesis_after_header', 'epik_home_loop_helper_mid_bottom' );
    		add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

    Everything should be fixed now. Those two lines were the only thing that needed to be adjusted.