Home Forums HashOne Reordering Home Page section

Viewing 4 posts - 1 through 4 (of 4 total)
  • 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
    Hash
    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
    Hash
    Keymaster

    Paste in in function.php

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

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