Tagged: group tabs, groups admins
Hi there,
I just purchased this plugin and it is exactly what I’ve been looking for, however, I am trying to hide the tab to only group admins and when I select this option, I am still able to see the tab even if I’m logged out in another browser. Is there something I’m missing, or is this a known issue?
Also, I was wondering if there was any way to make the TAB LINK open in a new window when clicked on?
Thank you in advance for your help!
Hi,
Welcome to BuddyDev and thank you for using the plugin.I am sorry for the inconvenience with the visibility. We had a bug on Add New Tab which caused it.
I have fixed and uploaded a new version
https://buddydev.com/plugins/buddypress-group-tabs-creator-pro/
Please upgrade and the visibility will work.
For opening in new tab:- The link generation is managed by BuddyPress, so it is difficult for us to manage the property.
There are solution though. If you know the nav items you want users to open in a new browser tab, we can use javascript to inject target=_”_blank” to the links to force it open in new tab.
Regards
BrajeshThank you.
Here is the code that opens all group tabs in new browser tab.
jQuery('body.single-item.groups .item-list-tabs a').attr('target', '_blank');
You need to put it in the theme’s js file.
WE can modify the above code to filter links based on id or classes. Please share me either the css id or css classes for the nav items and I will assist further.
Regards
BrajeshHi Brajesh,
Thank you for your help! I attempted to place your code in my theme’s javascript, but I have several files in my theme’s js folders and cannot find the right place to put it.
Also, the ID class that I’d like to open the tab in a new window is “studio.”
I am also seeing another issue: I have changed the “Members” tab to “Followers” and when I changed that the member count on the groups are not displaying there.
Please see images to know what I am referring to:
Hi,
The issue with count was a possible degradation for the update label. I have fixed it. Will be releasing an update later today and write back.For adding the js, you can use the “#studio” as
jQuery('body.single-item.groups .item-list-tabs #studio').attr('target', '_blank');
Assuming the id is for anchor.
For placing the js, pleas ask the theme developer if they have provided a way(most themes do it in child theme custom js file) or you can use a plugin like
https://wordpress.org/plugins/custom-css-js/Regards
BrajeshPlease upgrade to 1.0.7
https://buddydev.com/plugins/buddypress-group-tabs-creator-pro/It supports the counts in labels. The counts will be preserved.
Regards
BrajeshThank you for the kind words.
Have a great day.
Regards
Brajesh
The topic ‘ [Resolved] Buddypress Group Tabs Creator Pro showing tab to everyone instead of admins’ is closed to new replies.