Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › remove tool tip and move field description to below field.
- This topic has 4 replies, 3 voices, and was last updated 4 years, 8 months ago by Sarmistha Chakraborty.
- AuthorPosts
- March 1, 2020 at 9:25 am #109384
- March 4, 2020 at 2:35 pm #109897WCFM ForumMember
Hi,
Please add this code to your site for the purpose-
add_filter( 'wcfm_product_manage_fields_advanced', function( $advance_fields, $product_id ) { if( isset( $advance_fields['menu_order'] ) ) { $advance_fields['menu_order']['desc'] = $advance_fields['menu_order']['hints']; $advance_fields['menu_order']['desc_class'] = 'wcfm_page_options_desc'; unset( $advance_fields['menu_order']['hints'] ); } return $advance_fields; }, 50, 2 );
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/Thank You
- March 6, 2020 at 9:04 am #110207wpxpertParticipant
Thanks for the code. its working fine.
but I need to do for all tooltip in wcfm.
- March 9, 2020 at 10:06 pm #110752wpxpertParticipant
HI, I did you read my comments?
- March 10, 2020 at 6:19 pm #110949Sarmistha ChakrabortyMember
Hello,
For “Advance” menu,
Add this code,add_filter( 'wcfm_product_manage_fields_advanced', function( $advance_fields, $product_id ) { if( isset( $advance_fields['menu_order'] ) ) { $advance_fields['menu_order']['desc'] = $advance_fields['menu_order']['hints']; $advance_fields['menu_order']['desc_class'] = 'wcfm_page_options_desc'; unset( $advance_fields['menu_order']['hints'] ); } if( isset( $advance_fields['purchase_note'] ) ) { $advance_fields['purchase_note']['desc'] = $advance_fields['purchase_note']['hints']; $advance_fields['purchase_note']['desc_class'] = 'wcfm_page_options_desc'; unset( $advance_fields['purchase_note']['hints'] ); } return $advance_fields; }, 50, 2 );
Regarding all tooltip in WCFM,
Like above script you have to write in similar way for different filters.
example: For inventory SKU,add_filter( 'wcfm_product_fields_stock', function( $fields, $product_id, $product_type ) { $fields['sku']['desc'] = $fields['sku']['hints']; $fields['sku']['desc_class'] = 'wcfm_page_options_desc'; unset( $fields['sku']['hints'] ); return $fields; }, 50, 3 );
You can find filters in
wp-content/plugins/wc-frontend-manager/views/products-manager/wcfm-view-products-manage-tabs.php
file.Thanks.
- AuthorPosts
- You must be logged in to reply to this topic.