Course curriculum / course plan visible / invisible + location

Home Forums Legacy Support Support queries Styling issues Course curriculum / course plan visible / invisible + location

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #213023
    kyopitaimi
    Participant
    Dear WPLMS, I have some courses that have a course curriculum (course plan(kursplan)), but some does not. So I need to get rid of the KURSPLAN text and the curriculum not found dynamic text if there is no course curriculum. https://prnt.sc/nzhhjx Next I would like to have the KURSPLAN (course plan/course curriculum) to be located before the description text, and of course no text if there is no curriculum. https://prnt.sc/nzhijt Have a nice day and thank you!
    #213164
    Ava
    Member
    Hi Kyopitaimi For your First issue regarding this screenshot: https://prnt.sc/nzhhjx Paste this code in your wp-admin >> wplms >> footer > google analytics code. <script> if ( $( "#item-body" ).find( ".message" ) ) {  $( ".course_curriculum" ).css("display","none"); } else if( $( "#item-body" ).find( ".table" ) ) { $( ".course_curriculum" ).css("display","block"); } </script>   The issue regarding this screenshot: https://prnt.sc/nzhijt The customization you are asking for is currently not possible. There is code limitation which restrict from doing that.
    #213169
    kyopitaimi
    Participant
    Thank you for code AVA, the course plan go away from the empty ones. Unfortunately it went away from the ones that have information in course plan. https://prnt.sc/nzzfq7 Thank you!
    #213347
    Ava
    Member
    Hi Kyopitaimi We have shared the code after testing every case in our local setup and that case is working in our site. To know the reason why this isn't working on your site, please share your website Url and working admin credentials in private reply. So that we can check in your site.
    #213373
    kyopitaimi
    Participant
    This reply has been marked as private.
    #213548
    Ava
    Member
    Hi Thanks for contacting us, yes there was an issue with this code So I test it with different script code. And now its working fine in your site also. Please replace the above code with the below one and then paste in the same path as mentioned above. <script> if ( $( "#item-body" ).find( ".table" ) ) { $( ".course_curriculum.accordion" ).css("display","block"); } else if( $( "#item-body" ).find( ".message" ) ) {  $( ".course_curriculum" ).css("display","none"); } </script>   Do let us know if this helps.
    #213654
    kyopitaimi
    Participant
    Thanks Ava, No in educson.se it is the same as before (as from the beginning). When there is no course plan / course curriculum there is still the text KURSPLAN and no curriculum found https://prnt.sc/o0y8ur   This is the course plan in backoffice, some courses have and some does not, this one does not. https://prnt.sc/o0yasz   Thank you for all your help!
    #213661
    kyopitaimi
    Participant
    This reply has been marked as private.
    #213821
    Ava
    Member
    Please paste this snippets in your wp-admin >> plugins >> editor >> wplms-customizer plugin >> wplms-customizer.php add_action('wp_footer', function(){ ?> <script> jQuery(document).ready(function(){ if ( $( "#item-body" ).find( ".table" ) ) { $( ".course_curriculum.accordion" ).css("display","block"); } else if( $( "#item-body" ).find( ".message" )) { $( ".course_curriculum.accordion" ).css("display","none"); } }); </script> <?php },999);   Please check.
    #213836
    kyopitaimi
    Participant
    This reply has been marked as private.
    #214017
    Ava
    Member
    Hi Kyopitaimi Okay, So now I have updated the code. Please paste this code instead of the previous one in wp-admin >> plugins >> editor >> wplms-customizer plugin >> wplms-customizer.php add_action('wp_footer',function (){   global $post;   if($post->post_type == 'course'){     $curriculum = get_post_meta($post->ID,'vibe_course_curriculum',true);     if(empty($curriculum)){       ?>       <style>       .course_curriculum { display: none !important; }       </style>       <?php     }   } });
    #214047
    kyopitaimi
    Participant
    Great, thanks a million Ava!
    #214136
    logan
    Member

    Hello,

    Pleasure helping you. for all our efforts i hope you wouldn't mind writing a detailed review about your experience with WPLMS and our customer support.

    Here: https://themeforest.net/item/wplms-learning-management-system/reviews/6780226

    If I can be of assistance, please do not hesitate to contact me again.

    Closing this topic.

    best regards friend.

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Course curriculum / course plan visible / invisible + location’ is closed to new replies.