New Landing How can we help? Themeforest Theme Support Joyn How to manipulate team-member carousels?

Viewing 15 posts - 1 through 15 (of 16 total)
  • Posted in: Joyn
  • #243152
    adstream
    Member
    Post count: 85

    Hello,

    In the earlier versions of joyn it used to be a folder in swift-framework/page-builder/shortcodes/ where it was easy to manipulate the .php files and get the theme to bend in which direction you wanted it. Say that I wanted the categories of the team members to show inside the figcaptions it was easy to do. It was one of the best things with your themes (thats why we have bought almost every theme swift-ideas created). But now I cant even find where to edit a simple change like that. Could you please advise?

    Kind regards,
    Richard

    #243243
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please can edit this file at team.php \wp-content\plugins\swift-framework\swift-framework\includes\page-builder\shortcodes.
    Thanks
    Mohammad

    #243386
    adstream
    Member
    Post count: 85

    Awesome! Thanks alot!

    #243388
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome and glad to help you.
    Thanks
    Mohammad

    #243892
    adstream
    Member
    Post count: 85

    This was not as easy as i thought though. :-(. I tried to alter the team.php like this:

    $category = get_the_category( $post->ID );

    and calling it like this:

    $items .= ‘<h4 class=”team-member-category”>’ . $category . ‘</h4>’;

    which only echos “Array” in front end. Does anyone has a quick fix?

    Kind regards,
    Richard

    #243948
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please find this code :-

    $items .= '<h4 class="team-member-category">' . $category . '</h4>';

    Change with :-

    $items .= '<h4 class="team-member-category">' . $category[0]->cat_name . '</h4>';

    Thanks
    Mohammad

    #244237
    adstream
    Member
    Post count: 85

    Thanks Mohammad for taking the time!

    I added this on line 124 in team.php):
    $category = get_the_category( $post->ID );

    and this on line 205 in team.php (I want the category of where the team-members is assigned to show on hover in gallery carousel):
    $items .= '<h4 class="team-member-category">' . $category[0]->cat_name . '</h4>';

    Still dosent work. Now it dosent echo anything on front end. I dont get it!

    #244253
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Just change the cat_name with name.
    Thanks
    Mohammad

    #244280
    adstream
    Member
    Post count: 85

    Nope, it still dosent work 🙁

    #244348
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me login detail and specific page url with issue.
    Thanks
    Mohammad

    #244369
    adstream
    Member
    Post count: 85
    This reply has been marked as private.
    #244384
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please find this code:-

    $category = get_the_category( $post->ID );

    And replace with:-

    $category = get_the_category( $post->ID );
    print_r($category);

    Thanks
    Mohammad

    #244480
    adstream
    Member
    Post count: 85

    Still dosent work…

    I added this on line 124:

    $category = get_the_category( $post->ID );
    print_r($category);

    And this on line 212:
    $items .= '<h4 class="team-member-category">' . $category[0]->name . '</h4>';

    All I get is “Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) ” on front end under the page-content div.

    #244484
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please find this code :-

    $category = get_the_category( $post->ID );

    Change to :-

    $category = get_the_terms($post->ID, 'team-category' );

    Thanks
    Mohammad

    #244500
    adstream
    Member
    Post count: 85

    Works like a charm! Thanks Mohammad!

Viewing 15 posts - 1 through 15 (of 16 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