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
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.
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
This reply has been marked as private.
This reply has been marked as private.
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.
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/
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;}
This reply has been marked as private.
use this css:
.logged-out .elementor-element.elementor-element-b481515 a#PopUpCreateCourse {display: none !important;}
refer: https://share.getcloudapp.com/geurKge0
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
yes, that's a brilliant move by putting different selector names in buttons.