Split: Possible to re-order tabs in whoop?
This topic contains 8 replies, has 4 voices, and was last updated by Giri 8 years, 11 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
December 16, 2015 at 3:26 pm #64054
Hi,
Trying to do the same, re-order tabs in Whoop theme but having some issues. I’ve added the following to my Child Themes functions.php file:
remove_filter('geodir_detail_page_tab_list_extend', 'geodir_detail_page_tab_list_extend');
Then added this below it (the first tab being a custom tab):
add_filter('geodir_detail_page_tab_list_extend', 'jkirker_geodir_detail_page_tab_list_extend'); function jkirker_geodir_detail_page_tab_list_extend($tab_array) { global $preview; if ($preview) { return $tab_array; } $new_tab_array = array(); // here u can modify this array, u can create a completely new one too. if (isset($tab_array['gd_tab_1'])) { $new_tab_array['gd_tab_1'] = $tab_array['gd_tab_1'];// set in new array $new_tab_array['gd_tab_1']['is_active_tab'] = '1'; unset($tab_array['gd_tab_1']);//unset in old one } if (isset($tab_array['post_profile'])) { $new_tab_array['post_profile'] = $tab_array['post_profile']; // set in new array unset($tab_array['post_profile']);//unset in old one } if (isset($tab_array['reviews'])) { $new_tab_array['reviews'] = $tab_array['reviews'];// set in new array unset($tab_array['reviews']);//unset in old one } if (isset($tab_array['post_map'])) { $new_tab_array['post_map'] = $tab_array['post_map'];// set in new array unset($tab_array['post_map']);//unset in old one } if (isset($tab_array['special_offers'])) { $new_tab_array['special_offers'] = $tab_array['special_offers'];// set in new array unset($tab_array['special_offers']);//unset in old one } if (isset($tab_array['post_info'])) { $new_tab_array['post_info'] = $tab_array['post_info'];// set in new array unset($tab_array['post_info']);//unset in old one } if (isset($tab_array['post_images'])) { $new_tab_array['post_images'] = $tab_array['post_images'];// set in new array unset($tab_array['post_images']);//unset in old one } if (isset($tab_array['post_video'])) { $new_tab_array['post_video'] = $tab_array['post_video'];// set in new array unset($tab_array['post_video']);//unset in old one } if (isset($tab_array['special_offers'])) { $new_tab_array['special_offers'] = $tab_array['special_offers'];// set in new array unset($tab_array['special_offers']);//unset in old one } // now we set any remaining tabs that have not been assigned an order foreach ($tab_array as $key => $tab) { $new_tab_array[$key] = $tab; } return $new_tab_array; }
When I navigate to a details page, my custom tab is the default open tab but it’s still ordered last (farthest right). That and the details page url shows as:
http://www.mysite.com/place/united-states/new-york/buffalo/fesitvals/test-festival/#gd_tab_1
Note the ending “#gd_tab_1”.
How do I get my custom tab to display as the first tab (farthest left) and the url not include #gd_tab_1?
Thanks for any help with this,
T
December 16, 2015 at 8:08 pm #64117A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
December 16, 2015 at 8:29 pm #64123This reply has been marked as private.December 17, 2015 at 7:37 am #64178A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
December 17, 2015 at 3:54 pm #64251This reply has been marked as private.December 18, 2015 at 8:45 am #64335A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
December 18, 2015 at 12:09 pm #64352A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
December 18, 2015 at 8:47 pm #64455A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
December 21, 2015 at 7:27 am #64647A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket