Disable vibe_editor_rich_text tag after course editing in PWA

Home Forums Legacy Support 4.0 Bugs & Issues Disable vibe_editor_rich_text tag after course editing in PWA

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #334862
    prateekgupta2009
    Participant
    I 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.
    #334885
    prateekgupta2009
    Participant
    We 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/crVqQOoZI1
    #335290
    Anshuman Sahu
    Keymaster
    well 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 .
    #335441
    prateekgupta2009
    Participant
    case '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/xckvwv
#335811
Anshuman Sahu
Keymaster
You 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 .
#335827
prateekgupta2009
Participant
File Link: https://we.tl/t-Ciwbab6Le6
#336031
Anshuman Sahu
Keymaster
change 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>';
#336038
prateekgupta2009
Participant
It 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.
#336329
Anshuman Sahu
Keymaster
This reply has been marked as private.
#336351
prateekgupta2009
Participant
Dear 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 working
#336636
Anshuman Sahu
Keymaster
Well 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){
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.