Home › Forums › Legacy Support › 4.0 Bugs & Issues › Disable vibe_editor_rich_text tag after course editing in PWA
Tagged: Course editing, editing issue, vibe editor rich text
- This topic has 10 replies, 2 voices, and was last updated 3 years, 2 months ago by Anshuman Sahu.
Viewing 11 posts - 1 through 11 (of 11 total)
-
AuthorPosts
-
January 19, 2021 at 8:12 am #334862prateekgupta2009ParticipantI would like to disable the <div class="vibe_editor_rich_text"> "vibe_editor_rich_text" tag after the course editing in PWA. So when we edit any text field in course in PWA, it add one div tag for vibe_editor_rich_text which create problem with our course card & layout. Earlier it used to work fine but from last one month after some updates it started creating problems. We would like to disable it. Please look at the video. http://somup.com/crVqj1oZ19 Also in PWA it doesnot show any scroll bar while editing any course which create problem in course scrolling while editing.January 19, 2021 at 9:27 am #334885prateekgupta2009ParticipantWe just need to disable the vibe_editor_rich_text for What you will learn section on my website. Please help in disabling this class for What you will learn section on my website. Please look at the video. http://somup.com/crVqQOoZI1January 20, 2021 at 2:24 pm #335290Anshuman SahuKeymasterwell this tag is actually hardcoded and is read to parse the comtent in the new editor , we cannot remove it. But we can use the short description there instead of can use strip_all_tags function to strip the div in the short description there in your registered block style . Can you please provide us code for your custom featurted block style to add this for you .January 21, 2021 at 7:23 am #335441prateekgupta2009Participantcase 'course3': $wwyl = mb_strimwidth(get_post_meta($custom_post->ID,'vibe_what_you_will_learn',true) , 0 , 100, '...' ); $vu = get_post_meta($custom_post->ID,'vibe-unit',true); $vd = get_post_meta($custom_post->ID,'vibe-duration',true); $title = mb_strimwidth($custom_post->post_title , 0 , 45, '...' ); $wii = '<div class="PrcList mt-2"><h6 class="hedInc">What it includes?</h6><ul class="liProLrn liIncludes">
- 365 Days Of Course Access
- Videos, Assignments & Quiz
- High Quality Recorded Lectures
- Certificate of Completion
</div>'; $dte = get_the_modified_time('F d,Y'); $return .='<div class="block courseitem course3" data-id="'.$custom_post->ID.'">'; $return .='<div class="cont"><div class="hiddenbox" ><div class="title">'.$title.'</div><div class="dte">'.$dte.'</div><div class="wwyl">'.'<h6 class="hedInc">What you will learn?</h6>'.$wwyl.'</div><div class="wii">'.$wii.'</div><div class="viewmore"></div>'; $return .='ID).'" class="course_button full button">TAKE THIS COURSE'; $return .='<div class="course_price">'.bp_course_get_course_credits().'</div></div></div>'; $return .='<div class="block_media">'; $return .= 'ID).'" >'.get_the_post_thumbnail().'' ; //. apply_filters('vibe_thumb_featured_image',featured_component($custom_post->ID,$cols),$featured_style); $return .= apply_filters('vibe_thumb_date','<div class="date"><small>'. get_the_modified_time('F d,Y').''.'</small></div>',$featured_style); $return .='</div>'; $return .= '<div class="block_content">'; // $return .= $wwyl; Above is the code in that please Look for "What You Will Learn?" div after that is creating the problem as its loading the content from custom block which was created through custom navigation plugin. So its adding <div class="vibe_editor_rich_text"> Look at the screenshot: https://prnt.sc/xckvwvJanuary 22, 2021 at 2:29 pm #335811Anshuman SahuKeymasterYou did changes directly into the plugin files??? We definately does not recommend that as on update these changes will be lost . here is the proper tip on how to add new block style : https://wplms.io/support/knowledge-base/creating-custom-featured-block-style/ The code is not clear can you please send the whole file to correct this for you .January 22, 2021 at 3:33 pm #335827prateekgupta2009ParticipantFile Link: https://we.tl/t-Ciwbab6Le6January 23, 2021 at 2:24 pm #336031Anshuman SahuKeymasterchange this line : https://prnt.sc/xi679o with this :$return .= '<a href="'.get_permalink($custom_post->ID).'" class="desc" >'. '<p class="block_desch">'.mb_strimwidth(strip_tags(get_the_excerpt()), 0 , 100, '...' ).'</p>'.'</a>';
January 23, 2021 at 2:50 pm #336038prateekgupta2009ParticipantIt didn't solved the problem. https://prnt.sc/xi7aay but i was able to resolve it as strip tag was needed for this: https://prnt.sc/xi7ixl. So this problem is resolved now. Alex as we discussed on facebook chat few days back regarding Certificate Issue https://prnt.sc/xi7dfo. We have restored the website and did all those changes which you mentioned but still Certificate is not generating. Can you please check that also. Login credentials are on facebook chat. Its urgent for us, can you please resolved this issue now on our site.January 25, 2021 at 2:44 pm #336329Anshuman SahuKeymasterThis reply has been marked as private.January 25, 2021 at 3:48 pm #336351prateekgupta2009ParticipantDear Alex, Its not working, I tried to assign the certificate for one course but it didn't generate it: http://somup.com/crVToMoA1U Also There is issue with BootStrap4 & Offload Scripts settings to Yes, because it create problem with website layout & template. Website homepage is not loading properly: http://somup.com/crVTomoAhx So we will have to make it work without that setting... i always has it set to NO in 3.9 & it used to work.. now in 4.0 its not workingJanuary 27, 2021 at 2:20 pm #336636Anshuman SahuKeymasterWell you need to hit any icon to generate the certificate image : https://prnt.sc/xpqi6c to make this work without that bootstrap setting please replace this line in your "wp-content/plugins/wplms_plugin/includes/theme/wplms.actions.php" : https://prnt.sc/xpqlw9 with this :if(function_exists('vibe_get_option') && !empty(vibe_get_option('offload_scripts')) || 1){
-
AuthorPosts
Viewing 11 posts - 1 through 11 (of 11 total)
- The topic ‘Disable vibe_editor_rich_text tag after course editing in PWA’ is closed to new replies.