UsersWP profile and snippet to hide empty tabs

This topic contains 11 replies, has 3 voices, and was last updated by  Birgit Wilde 4 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #484556

    Birgit Wilde
    Full Member
    Post count: 236

    Hello,

    my geodirectory has quite many CPTs and I have installed UsersWP for account management. In order to hide empty CPT-tabs in the user profile, I use the attached snippet.
    However, this snippets seems to screw the display of reviews and favourites in the users profile (see screenshot)

    How must I adapt the code to show reviews and favourites in the profile properly AND to hide empty CPT-tabs in the users profile?

    Many thanks
    Birgit

    #484566

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    We don’t have settings for hiding empty tabs at this time, but I will flag your topic for the developers to let us know if there is a workaround.

    #484630

    Birgit Wilde
    Full Member
    Post count: 236

    That would be great! With approx. The average user will have 1 – 4 listings of one or two different CPTs. with 20 CPTs altogether the profile looks weird with all these empty tabs.

    Do you happen to know wheter I can hide empty tabs with buddypress?

    many thanks
    Birgit

    #484634

    Patrik
    Moderator
    Post count: 1971

    Hi,

    We have already by default hidden the main tabs if it contains no data. Regarding subtabs like CPTs, we will hide them as well by default.

    Regards,
    Patrik

    #484910

    Patrik
    Moderator
    Post count: 1971

    Hi,

    We have implemented this in the plugin it will be available in next release. If you want to apply the change on your site then let us know the FTP details in private reply and I will do this for you. Also, here is the PR for that if you want to do it by yourself: https://github.com/UsersWP/userswp/pull/265

    Please note, This is the change in the core file.

    Regards,
    Patrik

    #485180

    Birgit Wilde
    Full Member
    Post count: 236
    This reply has been marked as private.
    #485277

    Patrik
    Moderator
    Post count: 1971

    Hi,

    I have made the required changes on your site. Please review it and let me know if it resolved your issue or not.

    Regards,
    Patrik

    #485342

    Birgit Wilde
    Full Member
    Post count: 236

    Hi Patrik,
    perfect everyhting! Thank you so much 🙂
    Birgit

    #485348

    Patrik
    Moderator
    Post count: 1971

    Hi,

    The changes are now available in the new release of UsersWP done today. So you can update and check if everything working good or not.

    Regards,
    Patrik

    #489420

    Birgit Wilde
    Full Member
    Post count: 236

    Hi Patrik,
    just one more little question regarding empty subtabs in user profiles: Is it in the meantime also with Buddypress possible to hide empty subtabs in the user profile?

    Best regards
    Birgit

    #489437

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.
    #490045

    Birgit Wilde
    Full Member
    Post count: 236
    This reply has been marked as private.
Viewing 12 posts - 1 through 12 (of 12 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket