Ability to edit homepage image

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 10 reply threads
  • Author
    Posts
    • #118762
      karl ohin
      Participant

      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

    • #118771

      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.
    • #118775
      karl ohin
      Participant

      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.
    • #118791

      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.

    • #118793
      karl ohin
      Participant
      This reply has been marked as private.
    • #118992

      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.

    • #119133
      karl ohin
      Participant

      Hi

      I tried this but it didnt work

      I also notice that the pages across the site can be edited . see grab attached.

      It is like the vendors have permissions to edit the pages ???

      thanks

      Attachments:
      You must be logged in to view attached files.
    • #119320

      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.
    • #119322
      karl ohin
      Participant

      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

    • #119427
      This reply has been marked as private.
    • #119693
      karl ohin
      Participant
      This reply has been marked as private.
Viewing 10 reply threads
  • You must be logged in to reply to this topic.