Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Navigation Issue
- This topic has 13 replies, 3 voices, and was last updated 4 years, 3 months ago by logan.
Viewing 14 posts - 1 through 14 (of 14 total)
-
AuthorPosts
-
December 30, 2019 at 7:19 am #237956ranguParticipantHi Link 1 When I go https://my.icba.org.in/ it opens Link 1, But instead when a user goes to the web page without logging in it should take the user to Link 2. Link 2 Whenever a user goes to the website he should be taken to Link 2. Link 1 page should not be shown. Link 3 If the user is logged in to the browser he should be taken to Link 3 instead of Link 1. What I am saying is do not keep Link 1 page, instead show Link 2 and Link 3 in place of Link 1.December 31, 2019 at 6:33 am #238035loganMemberHello, Add this code in your wplms-customizer.php file in wplms customizer plugin : add_action('template_redirect',function (){ if(is_home() || is_front_page()) { if(is_user_logged_in()){ wp_redirect('http://www.link1.com'); // give the url of link 1 exit(); }elseif(!is_user_logged_in()){ wp_redirect('http://www.link2.com'); // give the url of link 2 exit(); }else{ wp_redirect('http://www.homepage.com'); // give the url of link 3 exit(); } } },1); also there is a setting in wp-admin >> lms >> setting >> student || instructor redirect after login. please use that too.December 31, 2019 at 11:27 am #238079ranguParticipantThis reply has been marked as private.January 2, 2020 at 6:42 am #238144DianaParticipantThis reply has been marked as private.January 3, 2020 at 9:08 am #238230ranguParticipantThis reply has been marked as private.January 3, 2020 at 10:48 am #238243DianaParticipantThis reply has been marked as private.January 6, 2020 at 7:15 am #238436ranguParticipantThe login is working now. I know those settings but, when I go to the admin page it is showing blank page. So I wanted those links to keep redirects to normal pages. Could you please send those two links as mentioned aboveJanuary 7, 2020 at 6:29 am #238533loganMemberPal :) sorry, i was on holiday. what is the issue, which two links share those two links so that i can modify the code,
- link 1....??
- link 2....??
January 7, 2020 at 9:16 am #238551ranguParticipant..January 7, 2020 at 9:54 am #238553ranguParticipantThis reply has been marked as private.January 8, 2020 at 5:39 am #238631loganMemberThis reply has been marked as private.January 8, 2020 at 6:58 am #238652ranguParticipantI already have the background image but it does not show there. But when I click on any element then the backgroung image shows up.January 8, 2020 at 11:25 am #238685ranguParticipantJanuary 9, 2020 at 6:52 am #238779loganMemberThis reply has been marked as private. -
AuthorPosts
Viewing 14 posts - 1 through 14 (of 14 total)
- The topic ‘Navigation Issue’ is closed to new replies.