Home Forums Total Re-order Homepage

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1026
    Steffi
    Participant

    Is it possible to re order the sections on the homepage?
    I like the layout of the ‘About’ section, but don’t want it at the top of the page.

    Was thinking maybe creating a child theme with some code in the function file to get the desired effect?

    #1034
    Hash
    Keymaster

    No, There is not option to reorder the section.

    You need to make a copy of front-page.php file and then reorder the code.

    #1366
    squirksss
    Participant

    Hey there,

    I have tried re-ordering the code in the front-page.php but somehow it does not change the order on my website. Are there any more steps that i should do other than the reordering of codes?

    #1395
    Suzy
    Participant

    I’ve been playing with the homepage layout as well, and there’s a file called home-template.php in the templates folder – when I edit that one, my changes show up. Working with front-page.php doesn’t seem to do anything.

    #1440
    Hash
    Keymaster

    Hi,

    It depends on what setting you are on. If the Setting for the Front Page display in Settings -> Reading Menu is “Latest Post” then you need to edit front-page.php file but the setting for Front Page Display is “Static Page” and the selected page has template “Home Page” used then you need to edit template-home.php file.

    #1921
    actionjen
    Participant

    Hi Suzy – I don’t see anything re-order on that file (home-template.php)in my editor. Can you share what code you input to reorder your sections? Much appreciated!

    #2202
    Manu
    Participant

    Hi,

    I can not find the front-page.php file anymore, and template-home.php file doesn’t list the different sections since the last update. Could you please help so we can re-order the different sections of the home page?

    Many thanks,
    Manu

    #2227
    karat
    Participant

    Hi-
    I just found out it is now in a file called:
    total-functions.php
    If you are working with a child theme, paste the below in your functions php and change the order to what you want.
    Hope this helps!

    if( !function_exists(‘total_home_section’) ){
    function total_home_section(){
    $total_home_sections = apply_filters(‘total_home_sections’,
    array(

    ‘slider’,
    ‘about’,
    ‘featured’,
    ‘blog’,
    ‘portfolio’,
    ‘service’,
    ‘team’,
    ‘counter’,
    ‘testimonial’,
    ‘logo’,
    ‘cta’
    )
    );

    return $total_home_sections;
    }
    }

    #2285
    Manu
    Participant

    Hi Karat,

    Thank you so much for your help, it was exactly what I needed!!!! I’m happy 🙂

    Cheers,
    Manu

    #2303
    Briscoh
    Participant

    @Karat
    Where do I have to insert the code in functions php?

    Cheers for helping 🙂

    #2319
    Hash
    Keymaster

    Here is how to change the order. In the function.php of child theme add the below code. Now you just need to change the order of the $array

    add_filter("total_home_sections", "total_new_home_sections");
    
    function total_new_home_sections($array){
    $array = array("slider","about","featured","portfolio","service","team","counter","testimonial",	"blog","logo","cta");
    return $array;
    }
    #3089
    johnson_geetika
    Participant

    Hello HashTheme,

    I followed your instructions but this doesn’t work, could you please tell me where exactly to paste this code in the function.php file? Any particular function?

    Regards,
    G

    #3093
    Hash
    Keymaster

    Just paste it at the bottom of the function.php and change the order in the above code.

    Thats should work.

    #3220
    kerwic
    Participant

    Hi Hash Themes,

    I love love love this template but really need to re-order the sections and the above code isn’t doing anything when I put it at the bottom of function.php in child theme.

    Can you help, i’m tearing my hair out trying to figure this out!

    Thanks,
    K

    #3221
    kerwic
    Participant

    i’ve done it! the spaces once copied and pasted were different. I put a space after each comma and it worked! thanks for the code!

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