Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Remove Rich Editor Class From Add New Product
- This topic has 5 replies, 2 voices, and was last updated 7 years ago by WCFM Forum.
- AuthorPosts
- December 13, 2017 at 7:56 am #16816ElhamGuest
Hi ,
I want to remove rich editor when the vendor add short description and description in Add Product page.
I tried to remove rich editor class from these fields but I got <p> and </p> tags inside the textarea of them. - December 13, 2017 at 8:09 am #16817WCFM ForumMember
Hi,
Thanks for get in touch with us.
First of all,please don’t edit any WCFM core files, this can be achieve very easily.
If you are using WCFM Ultimate then you already have capability option for this.
If you are using only WCFM Free version then kindly add the below code to your child theme’s functions.php –
function wcfmcap_custom_is_allow_rich_editor( $rich_editor ) { return ''; } add_filter( 'wcfm_is_allow_rich_editor', 'wcfmcap_custom_is_allow_rich_editor', 700 );
Please know me is this works for you or not!
Thank you
Simha - December 14, 2017 at 8:21 am #16869ElhamGuest
Thank you for your quick reply, I did not expect it so I did not if you have answered.
These lines work, but when I want to edit the product it still shows the textarea with <p> and </p> tags. - December 14, 2017 at 7:45 pm #16881WCFM ForumMember
Hi,
That’s strange, we have fixed this issue in WCFM 3.3.4.
Which version you are using in, please upgrade to the latest version.Thank You
- December 17, 2017 at 6:24 am #16983ElhamGuest
yes The version is 3.3.4
I have updated it to 3.3.5 and the it solved, Thank you alot - December 17, 2017 at 11:00 am #16994WCFM ForumMember
Ahh … great.
Thanks for informing this.Regards
Shhiv
- AuthorPosts
- The topic ‘Remove Rich Editor Class From Add New Product’ is closed to new replies.