Home / Forums / WoodMart support forum / WPBakery frontend editor doesn’t work with shop manager role
Home › Forums › WoodMart support forum › WPBakery frontend editor doesn’t work with shop manager role
WPBakery frontend editor doesn’t work with shop manager role
- This topic has 8 replies, 2 voices, and was last updated 1 year, 11 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
August 2, 2024 at 11:42 am #587554
qtwrk555ParticipantHi,
shop manager role has grant “cms block” in role manager setting , frontend editor is also enabled
in backend editor , it works
however if I switch to frontend , it breaks and gives “you do not have access” error
steps to reproduce:
1) use the shop manager role access link
2) go to HTML block
/wp-admin/edit.php?post_type=cms_block3) edit any existing HTML block in front end mode , you will see it gives this error as my screenshot
I have already contacted WPB support, they say to contact theme support
and yes, I double checked the WPB role setting, shop manager is granted with editor access.
best regards,
-
This topic was modified 1 year, 11 months ago by
qtwrk555.
Attachments:
You must be logged in to view attached files.August 2, 2024 at 2:31 pm #587606Hello,
The Shop manager cannot edit HTML blocks and there is no option to grant these rights. You will need to find a role manager plugin to rewrite the default rights.
If you have any questions please feel free to contact us.
Best Regards
August 2, 2024 at 2:53 pm #587616
qtwrk555Participantwhat is the permission it needed ?
and how do you explain it works for backend editor ?
August 2, 2024 at 3:22 pm #587632Hello,
The shop manager role has no permission to edit the custom post types like HTML block. For this, you have to use any 3rd party plugin like User ROle Editor plugin to give the permission to the shop manager to edit the HTML block:
https://wordpress.org/plugins/user-role-editor/Best Regards.
August 2, 2024 at 3:43 pm #587639
qtwrk555Participantyes, I mean what is the permission I need to grant to shop manager ?
August 3, 2024 at 11:08 am #587724Hello,
You have to give the permission to access the backend and edit the HTML blocks.
Best Regards.
August 3, 2024 at 11:53 am #587736
qtwrk555ParticipantCould you please be more specific ?
I granted shop manager with these permissions , but still can not edit it as shop manager role.
Attachments:
You must be logged in to view attached files.August 3, 2024 at 7:35 pm #587797
qtwrk555Participantalright , I guess if you want to solve a problem , you had to do it yourself
for anyone who may hit same issue , to allow shop manager to edit HTML block , use this code snippet
function modify_html_block_access_role( $role ) { if ( current_user_can( 'shop_manager' ) ) { return 'shop_manager'; } return $role; } add_filter( 'woodmart_html_block_access', 'modify_html_block_access_role' );-
This reply was modified 1 year, 11 months ago by
qtwrk555.
August 5, 2024 at 11:33 am #587944Sounds Great! that your issue has been solved.
I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.
We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.
Thanks for contacting us.
Have a great day.Topic Closed.
Best Regards. -
This topic was modified 1 year, 11 months ago by
-
AuthorPosts
The topic ‘WPBakery frontend editor doesn’t work with shop manager role’ is closed to new replies.
- You must be logged in to create new topics. Login / Register