Hi there,
You’re using these two classes in two menu elements:
1. visible_to_group_2982
2. visible_to_group_4539
As I’m logged-out and visiting the link you provided, the buttons are hidden. So, I think the functionality is working.
You said, “two courses” but you’re using “visible_to_group_123” instead of “visible_to_course”.
Also, please test with an actual user that is enrolled in a specific course/group. It seems you’re trying from an admin account. Please test again and let me know.
Saurabh
Hi Saurabh,
Thanks for your prompt response.
That’s right, the buttons are only visible when a user is logged in so that is when the issue occurs.
You can check using the test user login details below.
username: charlie.nicholls-5212
password: xO%*YFaiT*dsl%D^E782p8qE
Thanks,
Charlie
It is happening because the script we add in “head” tag is executing late, we tried it in our setup and it works fine.
As you said “optimize”, I’m suspecting a plugin you’re using could cause the issue.
Saurabh
Hi Saurabh,
Thank you for your response.
Would it be possible to engage you to take a deeper look and identify what plugin is conflicting and causing this?
Thanks
Charlie
Hi Charlie,
All I can suggest is you should try to deactivate any plugin that is related to page speed optimization and now try to test the button visibility.
If that doesn’t work, then try to deactivate all other plugins except Visibility Control for LearnDash and LearnDash LMS and test if in this case, it works fine?
If yes? then try to activate other recently active plugins one at a time and try to test the button visibility to check which plugin is causing the issue.
Saurabh
Hi Saurabh,
Thank you for your valuable guidance.
We will try your suggestions and reach out if we have further questions.
Many thanks,
Charlie