1 2 3 4 5 6 7 8 9 10 11 12 13 14 | jQuery(document).ready( function ($){ var nost=0; if ($( "body" ).hasClass( "single-sfwd-courses" )){ toba= '' ; $( "#lessons_list a.notavailable" ).removeAttr( "href" ); $( "#lessons_list a.notavailable" ).each( function (){ toba=$( this ).parent().parent().attr( "class" ); toba = toba.replace( "lesson post-" , '' ); toba = toba.replace( " is_not_sample no-topics" , '' ); toba = toba.replace( " is_not_sample has-topics" , '' ); $( '#learndash_topic_dots-' +toba+ " a" ).removeAttr( "href" ); }); } }); |
How to remove links of a learndash course which has not started yet? without code changes
by
Tags:
Leave a Reply