Home › Forums › Legacy Support › Support queries › Styling issues › Course curriculum / course plan visible / invisible + location
Tagged: course curriculum, course plan, style demo 13
- This topic has 12 replies, 3 voices, and was last updated 5 years, 5 months ago by logan.
Viewing 13 posts - 1 through 13 (of 13 total)
-
AuthorPosts
-
June 9, 2019 at 8:54 am #213023kyopitaimiParticipantDear 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!June 10, 2019 at 1:35 pm #213164AvaMemberHi 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.June 10, 2019 at 1:53 pm #213169kyopitaimiParticipantThank 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!June 11, 2019 at 1:40 pm #213347AvaMemberHi 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.June 11, 2019 at 2:37 pm #213373kyopitaimiParticipantThis reply has been marked as private.June 12, 2019 at 11:55 am #213548AvaMemberHi 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.June 12, 2019 at 3:04 pm #213654kyopitaimiParticipantThanks 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!June 12, 2019 at 3:34 pm #213661kyopitaimiParticipantThis reply has been marked as private.June 13, 2019 at 2:10 pm #213821AvaMemberPlease 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.June 13, 2019 at 2:53 pm #213836kyopitaimiParticipantThis reply has been marked as private.June 14, 2019 at 2:14 pm #214017AvaMemberHi 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 } } });June 14, 2019 at 5:02 pm #214047kyopitaimiParticipantGreat, thanks a million Ava!June 15, 2019 at 8:42 am #214136loganMember
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.
-
AuthorPosts
Viewing 13 posts - 1 through 13 (of 13 total)
- The topic ‘Course curriculum / course plan visible / invisible + location’ is closed to new replies.