Home Support HashOne Reordering Home Page section

This topic contains 3 replies, has 3 voices, and was last updated by  HashThemes 1 month, 3 weeks ago.

  • Author
    Posts
  • #2696

    seline07
    Participant

    Hi !

    I’ll try to reoder the home page section. In fact I’d like to put the service section before the portfolio one.
    I tried to put the following code in the function.php but it doesn’t seem to work

    if( !function_exists(‘hashone_home_section’) ){
    function hashone_home_section(){
    $hashone_home_sections = apply_filters(‘hashone_home_sections’,
    array(
    
    ‘slider’,
    ‘about’,
    ‘featured’,
    ‘blog’,
    ‘service’,
    ‘portfolio’,
    ‘team’,
    ‘counter’,
    ‘testimonial’,
    ‘logo’,
    ‘cta’
    )
    );
    
    return $hashone_home_sections;
    }
    }

    Anyone have a idea ?

  • #2760

    HashThemes
    Keymaster

    Change the order in the below code.

    add_filter('hashone_home_sections', 'hashone_new_home_sections');
    
    function hashone_new_home_sections($array){
    $array = array('slider',
    			'about',
    			'feature',
    			'portfolio',
    			'service',
    			'team',
    			'counter',
    			'logo',
    			'testimonial',
    			'blog',
    			'contact');
    return $array;
    }
  • #2896

    mefagu
    Participant

    Sorry, where will we paste this section reorder code please?

  • #2922

    HashThemes
    Keymaster

    Paste in in function.php

    If possible implement it using child theme so that the future update will not have any problem.

You must be logged in to reply to this topic.