yakiimo
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Show breadcrumbs only on specific pageForum: Plugins
In reply to: [Breadcrumb NavXT] Current page styleOk I will investigate, thank you!
Forum: Plugins
In reply to: [Download Monitor] New Update?Hi, thank you for the answer.
No problems at all, glad to hear the plugin is stable and secure enough not to need any updates.Thank you again!
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Hide Custom TabsIt works!
Thank you very much, sorry if I didn’t exactly know about the difference! You learn something new every day.Thanks again!
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Hide Custom TabsThank you for your prompt reply.
I put the exact same code in the Custom CSS of my Bridge WordPress Theme, Custom Tabs are the same too. You can see the three pictures here (Theme Custom CSS, Custom Tabs, Tab View from LOG OUT): https://imgur.com/a/PVkhyH8I can still see the tabs both from logged in and logged out ??
PS
On the last picture you can see another custom tab (datasheet) but that should be visible to everyone, just I case you asked.Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Hide Custom TabsThanks for the reply, but seems like it’s not working.
I created two custom tabs, called Manuals and Softwares (from the Admin panel menu, so they are saved as a template); then, I added the code.This is the code I inserted into the Theme’s custom CSS:
add_filter( ‘yikes_woo_filter_all_product_tabs’, ‘yikes_woo_hide_tabs_from_non_logged_in_users’, 10, 2 );
function yikes_woo_hide_tabs_from_non_logged_in_users( $tabs, $product ) {
if ( isset( $tabs[‘manuals’] ) && ! is_user_logged_in() ) {
unset( $tabs[‘manuals’] );
}if ( isset( $tabs[‘softwares’] ) && ! is_user_logged_in() ) {
unset( $tabs[‘softwares’] );
}return $tabs;
}I can still see the tabs both as logged in (as should be) and logged out (shouldnt be).
Any help? ??Thank you again