Hello,
In the course page when viewing on mobile, details of the course appear before 'STUDENTS ENROLLED',
How can I make a STUDENTS ENROLLED appear first?
This reply has been marked as private.
I mean the whole sidebar appear first in responsive mode.
Please try adding this given script in your wp-admin -> wplms -> footer -> google anaylitics script :
<script>
function move_students(){
if(jQuery( window ).width() < 700){
var element = jQuery('.col-md-9+.col-md-3 .students_undertaking');
var html = element.clone();
element.remove();
jQuery('.col-md-9+.col-md-3').prepend(html);
}
}
jQuery(document).ready(function(){
move_students();
jQuery(window).on('resize', function(){
move_students();
});
});
</script>
This reply has been marked as private.
Please replace the following javascript code with previous code in your wp-admin-> wplms-> footer -> google analytic code:
function move_students(){
if(jQuery( window ).width() < 700){
var element = jQuery('.col-md-9+.col-md-3 .students_undertaking');
var html = element.clone();
element.remove();
jQuery('div#buddypress div#item-body').prepend(html);
var element2 = jQuery('.single-course .col-md-9+.col-md-3 div#course-pricing');
var html2 = element2.clone();
element2.remove();
jQuery('div#buddypress div#item-body').prepend(html2);
}
}
jQuery(document).ready(function(){
move_students();
jQuery(window).on('resize', function(){
move_students();
});
});
I tried the code, and unfortunately nothing happened.
Well the javascript code is working fine on our test setup, may be you forgot to add the <script> tag before this code. If this code still not works then please share your valid admin credentials with us.
PS: Mark the reply as private while sharing the credentials.
Thank you very much for the excellent technical support, I added the script and the task was completed successfully.
Thanks for confirmation, should i close this topic now.