Plugin not working on certain pages
-
I can only seem to get the plugin to work on one page. If I enable visibility controls on another page, the block just gets hidden regardless of the user role. Is this a limitation of the free version?
-
Good morning @radianwear,
I apologize for the trouble you are having. The free version of Block Visibility has no such limitation, so it seems like something is amiss. Can you provide me with a bit more information about your current setup? For example the blocks you are using and the specific visibility settings that you have applied?
I look forward to hearing from you.
Nick
Good morning @radianwear, just following up on this support ticket. Are you still having trouble with Block Visibility? If so, can you provide me with a bit more information about your current setup? For example the blocks you are using and the specific visibility settings that you have applied?
Thanks,
NickSorry for the late reply @ndiego. I have a “group” block with two elements, a header and a learndash block. I have test with just a group block and a header and still have the same issue.
I have the visibility set to user-role and then I select the role I want to show it to. It works on one page fine and then on another it hides it no matter what the users role is.
Thanks for the followup @radianwear. Are these blocks in a widget or in a reusable block or template part? I apologize, I might be missing something here, but curious how the blocks are displaying on multiple pages.
I look forward to learning more about your setup, I am sure we can find a solution.
Best,
NickI am using an Astra starter template, all I am doing is hitting edit page on my homepage, then the + sign in the default WP editor, selecting the group block and then the + again to add my header and learndash blocks. As far as I know the block is not a reusable or template part. thanks @ndiego .
Thanks for the clarification @radianwear! If I am understanding correctly, once you add the group, header and Learndash block to your homepage, you are then applying the visibility settings to those blocks. The visibility settings are working correctly on the homepage, but then when you view other pages on your site, you are not seeing the blocks. Is that correct?
@ndiego they are NOT working on the homepage, but they were working on a different page in which I was using the same process, adding a group, adding blocks to the group, and then applying visibility to the group.
Hi again @radianwear, thanks for the clarification. I have attempted to replicate and unfortunately have been unable to. Here is the process I followed.
- I installed Astra and choose the “Plant Shop” starter template.
- On the homepage I clicked “Edit Page”.
- I then added a Group block below the main heading image and added a Heading block inside of the Group block.
- On the Group block, I configured visibility settings so the Group is only visible to users with the role “Administrator”.
- I viewed the homepage on the frontend and I was able to see the block since I was logged in as an Administrator
- I then viewed the page while logged out, and I no longer could see the Group and Heading block as expected.
To answer your original questions, the User Role control is fully enabled in the free version of Block Visibility. So if the above steps do not produce the expected results for you, please let me know. Something else must be going on.
Thanks,
Nick@ndiego Yea I am have the same issue still. I could create a video walkthrough to show you, maybe I am missing something stupid?
Hi @radianwear, I apologize for the delayed reply! Yes, a video walkthrough would be very helpful. I have tried a few more times this morning to replicate the issues and have not been able to.
Thanks,
Nick@ndiego no worries, here is a clip.
So as you can see I have two group blocks, one for staff and one for volunteers and I set the visibility to both to the respective user roles. I have a user who I placed in the staff role and on the page they see BOTH groups still. The odd thing is last week when I was playing with this on a different page, they were both hidden regardless. :/
- This reply was modified 2 years, 9 months ago by radianwear.
Hi again,
It looks like you are using the Members plugin to assign custom roles. I have installed as well for testing. Unfortunately, I am unable to replicate the issue and everything is working as expected.
Of course there may be a conflict caused by some other plugin, so if you don’t mind, I recommend these testing steps.
- Create a Group block that contains a Paragraph of text.
- On the Group block set the User Role control so the block is only visible to Administrators (I assume your profile is an admin)
- Save the page and confirm that you can see the content on the frontend
- Logout, or open an incognito window, and confirm that you cannot see the content
If the above steps work, proceed with the following:
- Navigate to your profile page and give yourself the additional role of “Staff”
- Go back to the page with the Group and set the visibility conditions to only be visible to users with the Staff role
- Again, check the frontend and you should see the content since you now have the role of Staff
- Logout, or open an incognito window, and confirm that you cannot see the content
Let me know if these testing steps do not work and we can diagnose further.
Thanks!
Nick
Good morning,
I was just following up to see if the testing steps above worked.
Thanks,
NickHey sorry, have not had a chance to test yet. I will try to get that done later today.
No worries, thanks for the follow up!
Best,
Nick
- The topic ‘Plugin not working on certain pages’ is closed to new replies.