Join our new community forum for support & discussion

Join Now

Home Support Themes ListingHive Unable to delete the vendor

Unable to delete the vendor

  • Author
    Posts
  • Aditya

    Hi,

    I urgently need your help.

    Whenever I try to delete the vendor I get a WordPress error ” Sorry, you are not allowed to move this item to the Trash.”

    I was able to delete the vendors until yesterday.

    Did you guys push any changes to the theme?

    Please help me

    ihor developer

    Hi,
    There were no changes, please make sure that you have the administrator role or other role that allows removing content. Please note that vendors are managed automatically, it’s just a profile for users with listings. So if user updates or adds a new listing vendor will be created again.

    Aditya

    Well, I do not want the users profile box shown after the listing is published and that is the reason I have to go and delete it manually every time. Is there a way that I can disable the vendor box on the listings page?

    I don’t want to hide it. But disable it.

    ihor developer

    Sure, this code snippet should do it (add it to the child theme functions.php file):

    I’ll add some option for disabling vendors in the next version, so this fix will not be required.

    Aditya

    I am receiving an error

    Your PHP code changes were rolled back due to an error on line 20 of file wp-content/themes/listinghive/functions.php. Please fix and try saving again.
    syntax error, unexpected ‘<‘, expecting end of file

    ihor developer

    Please copy this code snippet without the first line:

    <?php

    Also please don’t add it to listinghive/functions.php file, if you update ListingHive then any changes to this file will be lost. You can generate a child theme for customizations https://wordpress.org/plugins/child-theme-generator/

Viewing 6 posts - 1 through 6 (of 6 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.