Course Block and Course page problems

Home Forums Legacy Support Support queries Other issues Course Block and Course page problems

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1381
    ieltsdojo
    Participant
    Hi, I tried to remove sections from the course menu and followed the instructions at https://wplms.io/support/knowledge-base/remove-a-section-from-course-menu/  but received this error once I updated the page and cannot access the wp-admin pages:
    Parse error: syntax error, unexpected ' unset' (T_STRING) in /home/auspici2/public_html/wp-content/plugins/wplms-customizer/wplms-customizer.php on line 34
    The only fix was to replace the php file server side with an unedited file so there must be something wrong in the added code. Also, I was trying to update the course block - I want to remove the instructor and keep the price. I have added the custom CSS as documented but this is not working. This is the css added:
    .block.courseitem .block_content .star-rating{ display:none; } .block.courseitem .block_content .instructor_course+strong{ display:none; } .block.courseitem .block_content .instructor_course+strong{ display:none; }
    But you can see that the price is missing and the Tutor remains - see http://ieltsdojo.com/   Some other questions:
    • The course description is also duplicated, how can I stop that (see http://ieltsdojo.com/course/writing-practice-1/)?
    • How can I remove the bit where is says Unlimited Access?
    • How do you start on a page of your choice? This seems to be set as Course Status page and controlled via the WPLMS Course Manager page rather than the COURSE page. I want a unique landing page for each course.
    Many thanks for your help, IJ
    #1565
    MrVibe
    Keymaster
    There was some mistake in the tip, which has been corrected now. Please check and update.
    • One is course except and other is course description. For full course description check this video: https://www.youtube.com/watch?v=Y5XgwzkeX5g
    • refer tutorial : https://wplms.io/support/knowledge-base/remove-information-from-course-details-section/
    • You can use Visual composer for building landing pages for Courses. If you want to add the course button simply use the shortcode [course_button id="XX"] where XX is the course id.
    #1587
    ieltsdojo
    Participant
    Thanks for this, Can I double check this is the right code as I am still getting an error in Dreamweaver when I edited the php file. See http://screencast.com/t/OCkRbtCmx3M
    add_filter('wplms_course_nav_menu','wplms_course_remove_nav_section',100); function wplms_course_remove_nav_section($sections){ unset($sections['members']); unset($sections['curriculum']); unset($sections['events']); return $sections; }
    Also, for the removal of the course details. Where in the PHP file does it go. As I am not a coder I do not understand the '<span style="color: #4b4d4d; font-family: Lato; font-size: 15px; line-height: 25px;">Add the following line in the _construct function:</span><span style="line-height: 1.5;">' instruction. Do I just cut and paste at the bottom as follows: </span>http://screencast.com/t/PvRpxrpm? Thanks for your assistance, IJ  
    #1709
    Anshuman Sahu
    Keymaster
    We checked the code, you can add this code to remove the nav tabs :

    add_filter('wplms_course_nav_menu','wplms_course_remove_nav_section',100);
    function wplms_course_remove_nav_section($sections){

    unset($sections['members']);
    unset($sections['curriculum']);
    unset($sections['events']);

     

    return $sections;
    }

    and this code to remove "Unlimited Access" : add_filter('wplms_course_details_widget','remove_time'); function remove_time($course_details){ $key = 'time' ; unset($course_details[$key]); return $course_details; }
    #1885
    ieltsdojo
    Participant
    Thanks - where does it go? Anywhere before the ?> part. I have no php knowledge so not sure if it is important where in the php file it goes. Thanks, Neil
    #1933
    ieltsdojo
    Participant
    Fantastic - that all works. Thanks,  
    #2196
    Anshuman Sahu
    Keymaster
    Marking as resolved and closing the ticket .
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Course Block and Course page problems’ is closed to new replies.