Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Ability to edit homepage image
- This topic has 11 replies, 2 voices, and was last updated 4 years, 7 months ago by Sarmistha Chakraborty.
- AuthorPosts
- April 13, 2020 at 7:14 pm #118762karl ohinParticipant
Hi all
I am testing a vendor account and on the STOREFRONT page of the woo commerce theme the top image ( which is a wordpress page ) the vendor can see a button edit the section to the right hand side on the image .
I have turned off all capabilities to check , but it wont turn off .
How do i edit the role of the vendor in wordpress to check this ??
Because when they click on it, it gives them access to edit the homepage and also it allows them to see all the users of the store etc.
They can access my WOO commerce payment settings and more .
Surely this shouldnt be the case .
PLEASE advise anybody ?
thanks
- April 13, 2020 at 7:29 pm #118771Sarmistha ChakrabortyMember
Hello,
Kindly turn off the “Backend Access” from Admin WCFM Store Dashboard -> Capability -> Backend Access (PFA)
Thanks.
Attachments:
You must be logged in to view attached files. - April 13, 2020 at 7:45 pm #118775karl ohinParticipant
Hi Sir
I have that turned off which managed to stop the entry to the WP-ADMIN and backend etc.
I still have the edit this section on the homepage when logged in as a vendor see picture attached .
When you click the edit link it goes to the store manager now which is safe enough.
It would be nice to get rid of this on the homepage when a vendor is logged in.
I am using the storefront theme – woo .
Thanks for your assistance
Attachments:
You must be logged in to view attached files. - April 13, 2020 at 8:36 pm #118791Sarmistha ChakrabortyMember
Hello,
That’s really strange!
Our WCFM plugins are tested with STOREFRONT theme, and it’s working perfectly.
Can you share us your site details then we can check your site.Thanks.
- April 13, 2020 at 8:40 pm #118793karl ohinParticipantThis reply has been marked as private.
- April 14, 2020 at 2:07 pm #118992Sarmistha ChakrabortyMember
Hello,
Add this code in your theme’s functions.php
add_filter( 'body_class', function( $classes ) { $userid = get_current_user_id(); if(wcfm_is_vendor($userid)) { $classes = array_merge( $classes, array( 'vendor-dashboard' ) ); } return $classes; });
And add this css in your theme’s style.css
.vendor-dashboard .storefront-hero__button-edit { display: none !important; }
Thanks.
- April 14, 2020 at 10:42 pm #119133
- April 15, 2020 at 2:37 pm #119320Sarmistha ChakrabortyMember
Hello,
“I tried this but it didnt work”
>>Please try in incognito, we have logged in as a vendor(pf1@personalfitness.ie), the banner edit button is removed now. (PFA)It is like the vendors have permissions to edit the pages ???
>>No, When you click the edit link it will goes to the store manager page. For removing the edit icon add this css in your theme’s style.css.vendor-dashboard .post-edit-link { display: none !important; }
Thanks.
Attachments:
You must be logged in to view attached files. - April 15, 2020 at 2:41 pm #119322karl ohinParticipant
Ok – but can you click on the “what we do” page and tell me if you can see edit under the title – when logged in as a vendor ?
thanks
- April 15, 2020 at 8:54 pm #119427Sarmistha ChakrabortyMemberThis reply has been marked as private.
- April 16, 2020 at 2:11 pm #119693karl ohinParticipantThis reply has been marked as private.
- April 16, 2020 at 2:47 pm #119708Sarmistha ChakrabortyMemberThis reply has been marked as private.
- AuthorPosts
- You must be logged in to reply to this topic.