Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Shop description – disable rich editor & limit character number
- This topic has 5 replies, 2 voices, and was last updated 5 years ago by WCFM Forum.
- AuthorPosts
- December 4, 2019 at 5:31 pm #96023marcinzywyParticipant
In vendor store Setup Wizard for field “Shop Description” I would like to:
– disable rich editor
– limit character number to 1600 characters onlyAlso, I would like to apply this to ‘shop description’ filed in vendor store dashboard settings.
Thank you for help!
- December 7, 2019 at 1:19 pm #96421WCFM ForumMember
HI,
Please add this code to your site for the purpose –
add_filter( 'wcfm_product_manage_fields_content', function( $content_fields, $product_id, $product_type ) { if( isset ( $content_fields['description'] ) ) { $content_fields['description']['type'] = 'textarea'; $content_fields['description']['attributes'] = array( 'maxlength' => 1600 ); } return $content_fields; }, 50, 3 ); add_filter( 'wcfm_marketplace_settings_fields_general', function( $content_fields, $vendor_id ) { if( isset ( $content_fields['shop_description'] ) ) { $content_fields['shop_description']['type'] = 'textarea'; $content_fields['shop_description']['attributes'] = array( 'maxlength' => 1600 ); } return $content_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
- December 9, 2019 at 4:24 pm #96745marcinzywyParticipant
I tried with the code provided and it works fine.
Awesome. Thanks.
Cheers guys!
- December 10, 2019 at 9:59 am #96828WCFM ForumMember
You are always welcome 🙂
Let me know if there’s anything else we can help you with.
Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.
- December 11, 2019 at 3:20 pm #97028marcinzywyParticipant
Will do! Thank you:)
- December 12, 2019 at 5:16 pm #97235WCFM ForumMember
My pleasure 🙂
- AuthorPosts
- The topic ‘Shop description – disable rich editor & limit character number’ is closed to new replies.