Home › Forums › Chit Chat › WPLMS customizations › How to create custom link on course left menu
Tagged: Left NAV fixed View
- This topic has 26 replies, 5 voices, and was last updated 7 years, 10 months ago by
sureshkdara.
-
AuthorPosts
-
October 21, 2015 at 11:20 am #3968
sureshkdara
SpectatorHi, How to add custom links in course page left menu and how to delete existing links from course page left menu. Regards, SureshOctober 21, 2015 at 1:04 pm #3980sureshkdara
SpectatorHi, How to add custom links in course page left menu and how to delete existing links from course page left menu. Note: i want to give External links to my left menu. Regards, SureshOctober 22, 2015 at 8:34 am #4118sandy
MemberIt would be great if you can please search documentation before creating a topic. Refer tutorial : https://wplms.io/support/knowledge-base/adding-custom-section-in-course-menu/October 22, 2015 at 6:55 pm #4218sureshkdara
SpectatorHi, I am not asking to create custom section. i need to create custom link.. external link. example: support and the link should be external... not custom sections.October 22, 2015 at 6:56 pm #4219sureshkdara
SpectatorHi, I am not asking to create custom section. i need to create custom link.. external link. example: support link and the link should be external... not custom sections. i need custom link(External) on course page menu. (left menu on course page)October 23, 2015 at 12:52 pm #4450sureshkdara
SpectatorPlease updateOctober 23, 2015 at 1:46 pm #4497MrVibe
KeymasterWell the above tutorial has the answer. Try only the first part which adds the link :add_filter('wplms_course_nav_menu','mywplms_course_custom_nav_menu_item'); function mywplms_course_custom_nav_menu_item($course_menu){ $link = bp_get_course_permalink(); $course_menu['custom']=array( 'id' => 'custom', 'label'=>__('Custom Item','vibe'), 'action' => 'custom', 'external'=>1, 'link'=> 'http://google.com', ); return $course_menu; }
October 26, 2015 at 8:25 am #4946sureshkdara
SpectatorHi, Above code is working fine. but it is adding additional link to google link.. how to remove that... Showing link like ... http://google.com/?action=custom how to remove "?action=custom" i try to remove the 'action' => 'custom', then its working fine but its applying "current' style.. to menu Please check the file attachment for code...October 26, 2015 at 11:39 am #4998sureshkdara
SpectatorHi, Please updateOctober 27, 2015 at 6:48 am #5230MrVibe
KeymasterOk, I have added a fix for this in Vibe Course module plugin, in the coming update. Check the updated code above. After Vibe Course module plugin update v 1.9.9.3 you'll not get the ?action=custom for custom links. Thanks.October 27, 2015 at 2:24 pm #5376sureshkdara
SpectatorHi, Thank you but no luck.. still showing.. extra link in external link. PFA Showing like... http://google2.com/?action=customOctober 28, 2015 at 1:15 pm #5599sureshkdara
SpectatorHi Team please try fixing the issue. We are in diehard urgency our site needs to be launched in two days time. Issue:<span style="color: #4b4d4d; font-family: Lato; font-size: 14px; line-height: 22px;"> We N</span><span style="color: #4b4d4d; font-family: Lato; font-size: 14px; line-height: 22px;">eed custom link (External) on course page menu. (left menu on course page)</span><span style="line-height: 1.5;"> . When we applied the code given by you. It is working but</span><span style="color: #4b4d4d; font-family: Lato; font-size: 14px; line-height: 22px;"> showing..an extra link in the external link. . We beg for a speedy response on this issue. </span> ThanksOctober 29, 2015 at 3:28 am #5693sureshkdara
SpectatorPlease update. waiting for ur update. still externa links not working... adding extra links... you can try from your end.. my site credentials. please test visualpathit.com/wp-admin user: sureshdara pas: sapindia123 please fix.October 29, 2015 at 4:35 am #5699sureshkdara
SpectatorPlease update. waiting for ur update. still externa links not working... adding extra links... you can try from your end.. my site credentials. please test First login details.. (home page secured) visualpathit.com/wp-admin user: home PAssword: n]NSlF5_B-Uv user: sureshdara pas: sapindia123 please fix.October 29, 2015 at 8:32 am #5794MrVibe
KeymasterFixed. Please check and confirm. -
AuthorPosts
- The topic ‘How to create custom link on course left menu’ is closed to new replies.