Remove Batch Links

Home Forums WPLMS AddOns WPLMS Batches Remove Batch Links

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #109081
    HorizonCME
    Spectator
    I don't want my users getting in the group area for their batch, so is there any way to remove the hyperlinks from the batch labels? http://nimb.ws/3R7uOw
    #109259
    H.K. Latiyan
    Participant
    Try adding the bellow code in your wplms-customizer.php file present in your wplms customizer plugin: add_action('wp_footer',function(){ if(is_singular('course')){ ?> <script> jQuery(document).ready(function($){ $('.course_batch h4 a').on('click',function(event){ event.preventDefault(); }); }); </script> <?php } });   NOTE: This will not remove the hyperlink, but it will prevent users from clicking on it.
    #109294
    HorizonCME
    Spectator
    That code didn't work, but I modified it slightly and got the outcome I was hoping for:   /* Remove Batch Links */ add_action('wp_footer',function(){ if(is_singular('course')){ ?> jQuery(document).ready(function($){ $('.batch_list h4 a').removeAttr('href'); }); <?php } });   Thanks for your help on this!
    #109419
    H.K. Latiyan
    Participant
    Thanks for the update, so closing the topic.
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove Batch Links’ is closed to new replies.