Home › Forums › Legacy Support › Support queries › Other issues › Course Block and Course page problems
- This topic has 6 replies, 3 voices, and was last updated 9 years, 2 months ago by Anshuman Sahu.
Viewing 7 posts - 1 through 7 (of 7 total)
-
AuthorPosts
-
October 3, 2015 at 8:50 am #1381ieltsdojoParticipantHi, 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.
October 5, 2015 at 12:45 pm #1565MrVibeKeymasterThere 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.
October 5, 2015 at 2:25 pm #1587ieltsdojoParticipantThanks 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/OCkRbtCmx3Madd_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, IJOctober 6, 2015 at 1:52 pm #1709Anshuman SahuKeymasterWe 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; }
}October 7, 2015 at 2:04 pm #1885ieltsdojoParticipantThanks - 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, NeilOctober 8, 2015 at 12:57 am #1933ieltsdojoParticipantFantastic - that all works. Thanks,October 9, 2015 at 12:20 pm #2196Anshuman SahuKeymasterMarking as resolved and closing the ticket . -
AuthorPosts
Viewing 7 posts - 1 through 7 (of 7 total)
- The topic ‘Course Block and Course page problems’ is closed to new replies.