• Hi,
    I want to change the layout of a player detail page.

    I want to change the order of the points “Auswahlmannschaft” and “Leages”. The Leages should be right below “Aktuelle Mannschaft”. Is this possible?

    Thanks

    Alexander

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter oldrunner

    (@oldrunner)

    no idea how to accomplish this?

    Thanks

    Alex

    Plugin Contributor Savvas

    (@savvasha)

    Hi @oldrunner ,

    Sorry for the late delay. The order of Player Details can be modified using the hook sportspress_player_details.
    So you can use something like the below at your theme’s function.php:

    
    add_filter( 'sportspress_player_details', 'rearrange_player_details', 30, 2 );
    function rearrange_player_details( $data, $post_id ) {
    //rearrange code
    return $data;
    }

    $data is the array where the details are stored in the format Detail_name => Value. So you need to iterate $data array and based on Detail_name rearrange the order of your data.

    Thanks,
    Savvas

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change Layout on a player detail page’ is closed to new replies.