Tagged: Custom Group Tags
Hi- There was a similar question about opening a link from Custom Group Tabs in a new browser tab in 2019. See here(https://buddydev.com/support/forums/topic/open-a-link-in-a-new-window-or-tab-with-bp-custom-group-tabs-plugin/).
But in our case we’d be very happy to open the sub-nav links in a new window/browsertab/popup…
Reading that earlier thread, it sounds like that’s fairly straight forward? Thanks for any help!
Thank you- this works great for the Parent “Custom Group Tab” (resources-groups-li) but what I’m trying to do is launch “subnav 1” (gstab-647a57cbeca26-li) which in this case is Google.com in a new window… It might be relevant, too, that there is a “subnav 2” which should <not> launch in a new window.
Maybe I’m not understanding the “var tabSelectors = [‘#activity-groups-li’, ‘#home-groups-li’ ];” and what shoudl go where…
Many thanks for your help!
<li id=”resources-groups-li” class=”bp-groups-tab current selected”>
<div class=”bb-profile-grid bb-grid”>
<div id=”item-body” class=”item-body”>
<nav class=”bp-navs bp-subnavs no-ajax group-subnav” id=”subnav” role=”navigation”><ul class=”subnav”><li class=”current selected” id=”gstab-647a57cbeca26-li”>Information and Logistics<li class=”” id=”gstab-647a57cbeca28-li”>Information and Logistics</nav><div class=”bpgtc-tab-content bpgtc-tab-erdi-resources-content bpgtc-tab-erdi-resources-erdi-info-logistics-content “></div> </div>
Thank you for the reply.
I am sorry, there is a problem with using the code with sub tab.
The id for sub tab is dynamic. The second part in gstab-647a57cbeca28 is being generated dynamically and will change on page loads.
We need to find a way to target these sub tabs by using class or IDE. Please allow me to think about it and get back to you on Monday(This is not standard part of BuddyPress nav).
The topic ‘ [Resolved] Setting target window for subnav link in BP Customer Group Tabs’ is closed to new replies.