I want to hide the names of the agents name

I would like to hide the names of the agents either for users to buy to reveal the names of the agencies or for users to not see them altogether. Could I get some assistance with this?

I would like the listing to say just listing without their name and also can not be viewed using inspect element.

Thanks!


Hi,

If you need to hide those who add listings, the easiest option is to disable the Display hosts on the front-end feature in HivePress > Settings > Hosts.

I don’t think I was clear. What I am asking is if there is a feature to hid the names like in this case “Beacon Realty Properties LLC” so that you must buy a membership to view the property. Like how you need to buy a membership to view certain attributes.

Hi,

Unfortunately, there is no such feature for titles, it will require a custom implementation. If you are familiar with coding, we can provide general guidance.

Yes I familiar, could you please give me guidance?

It’s possible if you override the vendor name template part (/vendor/view/page/vendor-name.php) https://www.youtube.com/watch?v=LkojYp-8uwY via a child theme, then you can wrap the name with any PHP condition. You can check the membership of the current user this way:

$membership=hivepress()->request->get_context('membership');

If you var_dump it you can check it’s contents, and add a condition for a specific membership name or restrictions around the vendor name.

Hope this helps

Thank you so much. I am not sure how to access the files using the file editor, can I do this directly in the rental hive theme? For some reason I can’t find the vendor folder

Please check if your hosting provider has any web file editor in the control panel, if not you can edit files via FTP or SSH (via the preferred editor, e.g. VSCode). To override the template files, you need to create the folder path of the same structure, e.g. if you create a child theme:

child-theme-name/hivepress/vendor/view/page/vendor-name.php

So if you copy this file from the HivePress plugin hivepress/templates/vendor/view/page/vendor-name.php at master · hivepress/hivepress · GitHub to the path mentioned above then this file will override the plugin’s one and you’ll be able to customize it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.