adding links for offline- and online-courses

Home Forums Legacy Support Support queries Other issues adding links for offline- and online-courses

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #178457
    KuWe
    Participant
    which direct-links have we to add to each button, when we want one button been linked to all listed offline-courses and one button is linked to a list to all of online-courses?
    #178458
    KuWe
    Participant
    This reply has been marked as private.
    #178588
    Anshuman Sahu
    Keymaster
    Well no right now there is no such pages or blocks available .But we can filter this on all courses page with the help of custom code . link to the button would be : http://site.com/all-courses/?filter=online Courses will be filtered with online and offline on all courses page . You can set the links to the buttons then .   if interested then please tell us ,we will share a code tip to you .
    #178612
    KuWe
    Participant
    This reply has been marked as private.
    #178755
    Anshuman Sahu
    Keymaster
    okay thanks for this . I will develop a script for this .Provide me some time for this .
    #180354
    KuWe
    Participant
    This reply has been marked as private.
    #180599
    Anshuman Sahu
    Keymaster
          please try adding this given code in your wplms-customizer.php file in wplms customizer plugin :   add_Action('wp_footer',function (){ if (!function_exists('bp_is_directory')) return; if(bp_is_directory && isset($_GET['filters'])){   ?> <script type="text/javascript">   jQuery(window).load(function(){ jQuery('input#<?php echo $_GET['filters'] ?>').prop('checked',true); jQuery('input#<?php echo $_GET['filters'] ?>').trigger('change'); jQuery('a#submit_filters').trigger('click'); }); </script> <?php } });     link to online : http://site.com/all-courses/?filters=online link to offline : http://site.com/all-courses/?filters=offline
    #180663
    KuWe
    Participant
    This reply has been marked as private.
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘adding links for offline- and online-courses’ is closed to new replies.