WPIntell

Source evidence

Two buttons loading

Visibility Control for LearnDash · support · 2022-05-26T05:19:00+00:00

complaintsentiment
mediumseverity
0.93relevance
6replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

2 / 33 rows with source links

6.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

31 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
kartdigital unresolved
Hi, We are using the LearnDash Visibility Control plugin to display buttons in the menu based on what course a user is enrolled in. At the moment, we have two courses, so we have two buttons. However, both buttons are appearing while the header is loading. Aside from optimising the website speed (we have done this), do you have any suggestions for how we can prevent this flicker? Thanks! The page I need help with: [ log in to see the link] 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

Comments

6 shown
Saurabh Chauhan 2022-05-26T05:50:00+00:00

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

kartdigital 2022-05-26T06:22:00+00:00

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

Saurabh Chauhan 2022-05-26T07:08:00+00:00

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

kartdigital 2022-05-27T06:28:00+00:00

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

Saurabh Chauhan 2022-05-28T17:46:00+00:00

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

kartdigital 2022-05-30T05:00:00+00:00

Hi Saurabh, Thank you for your valuable guidance. We will try your suggestions and reach out if we have further questions. Many thanks, Charlie