Redirect guest user to Login page

Home Forums Legacy Support Support queries How-to & Troubleshooting Redirect guest user to Login page

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #239530
    IBSP
    Spectator
    Hello, I've created a button on home page refer: https://prnt.sc/qo7pr9 When a guest user or new visitor clicks on this link, it takes to an error page that shows refer: https://prnt.sc/qo7qjq I want the user to redirect to the Login/Register page Thanks
    #239574
    logan
    Member
    You have created a button with create a course link. this creates a course link that only works for the instructor and admin. other roles cant create the course. this is what the error tells you. Share this page link then i will share code when the user will click that button it will open the login pop up for them.
    #239577
    IBSP
    Spectator
    https://iops.org.pk/ This is the Page link/Homepage I've created a block and button on which user will see that popup or redirect to that registration page when a guest user clicks on that link refer: https://prnt.sc/qoeqjq  
    #239723
    logan
    Member
    This reply has been marked as private.
    #239768
    IBSP
    Spectator
    This reply has been marked as private.
    #239815
    logan
    Member
    what do you want to do with this?? either remove the link from that button put # in link option. or i can do another thing: if user is not logged in then pop up will appear or if he is logged in then he will goto that anchor link. specify what do you want.
    #239956
    IBSP
    Spectator
    Okay leave it it's done that you did, Can I hide a button for all logged-in users? refer: https://prnt.sc/qq6wci link to page: https://iops.org.pk/  
    #240030
    logan
    Member
    try this custom css. .logged-in section.elementor-element.elementor-element-5cece54 .elementor-element.elementor-element-e702f48 .box-footer.disable_hover_button {display: none !important;}
    #240278
    IBSP
    Spectator
    This reply has been marked as private.
    #240347
    logan
    Member
    use this css: .logged-out .elementor-element.elementor-element-b481515 a#PopUpCreateCourse {display: none !important;} refer: https://share.getcloudapp.com/geurKge0
    #240368
    IBSP
    Spectator
    Thanks🙂 It works, But for the 2nd button, this makes problem, then I use this code .logged-in a#RegistertoCreateCourse{ display:none !important;} .logged-out a#CreateaCourseButton{ display:none !important;} It works as I want 👌 I hope this will not mess up any other element Thanks
    #240371
    logan
    Member
    yes, that's a brilliant move by putting different selector names in buttons.
Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Redirect guest user to Login page’ is closed to new replies.