New Landing How can we help? Themeforest Theme Support Dante Team Member Order (Child Theme)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #281539
    kmanship
    Member
    Post count: 2

    Hi,

    I would like to order by team alphabetically. Previous post have mentioned using a plugin to order the team however my preference is to override it in the child theme.

    e.g Override the parent theme ‘/swift-framework/page-builder/builder/shortcodes/team.php’ with a version in the child theme containing:

    Parent:

    $team_args=array(
    ‘post_type’ => ‘team’,
    ‘post_status’ => ‘publish’,
    ‘paged’ => $paged,
    ‘team-category’ => $category_slug,
    ‘posts_per_page’ => $item_count,
    ‘ignore_sticky_posts’=> 1
    );

    Child:

    $team_args=array(
    ‘post_type’ => ‘team’,
    ‘post_status’ => ‘publish’,
    ‘paged’ => $paged,
    ‘team-category’ => $category_slug,
    ‘posts_per_page’ => $item_count,
    ‘ignore_sticky_posts’=> 1
    ‘orderby’ => ‘name’,
    ‘order’ => ‘ASC’
    );

    I’m hesitant to make the change in the parent theme as it would get overridden when updating to a new version of theme.

    Is there a way to order the Team alphabetically by overriding the team.php ‘content’ function in a child theme?

    Thanks.

    #281622
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Unfortunately it’s not possible to override framework files in the child theme, you’ll have to use the plugin method

    – Kyle

    #281782
    kmanship
    Member
    Post count: 2

    Thanks for your help.

    #281834
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome 🙂 .
    Mohammad

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register