Email Social Link Not Displaying in Vendor Profile Frontend

Steps to reproduce

  1. Go to HivePress > Settings > Vendors > Social Links and enable the Email field

  2. As an admin, add an email address to a vendor profile

  3. Save the changes

  4. View the vendor profile on the frontend

  5. Observe that the email social link is not displayed (while Telegram and WhatsApp are visible)


Actual result

The email social link does not appear in the vendor profile on the frontend, even though it is saved in the admin dashboard and visible there.


Expected result

The email social link should display in the vendor profile on the frontend, just like Telegram and WhatsApp do.


Extra details

  • Environment: Local development (WP Local)

  • Theme: ListingHive

  • PHP Version: 8.2.23

  • Status: All third-party plugins have been deactivated and the issue persists

  • Other social links: Telegram and WhatsApp are working correctly in both admin and frontend

Hi,

Thanks for the details.

I’ve tried to reproduce the issue locally but wasn’t able to do so: Social Links for vendor profiles | Loom.

If possible, could you please record a screencast with the exact steps to reproduce the issue, or send temporary access credentials to support@hivepress.io so we can test it directly in your environment? You can create a temporary access link using this plugin.

Continuing the discussion from Email Social Link Not Displaying in Vendor Profile Frontend:

Is this information sufficient?

I didn't grant access to the website because I don't know how to do it from WordPress Local.

As for a video, that's possible, but I don't see how to upload it.

Let's proceed step by step to achieve our goal.

Best regards

2-4

3-4

4-4

Thanks for the details and for helping us improve HivePress.

It appears that there is currently a UI inconsistency. The email field from the Social Links extension is available only on the backend, while the email field visible on the frontend is the built-in field from the core HivePress plugin that is used during registration.

So at the moment, adding an email as a social link can only be done by the admin from the backend.

Our developer will provide a temporary fix soon before we release an official update with a permanent solution.

Please try this PHP snippet as a temporary fix:

add_filter(
	'hivepress/v1/social_links',
	function( $config ) {
		$config['contact_email'] = [
			'label'  => 'Contact Email',
			'type'   => 'email',
			'prefix' => 'mailto:',
		];

		return $config;
	}
);

Also, add this CSS snippet to Appearance/Customize/Additional CSS:

.hp-social-links .hp-social-links__item--contact-email {
  background: url(/wp-content/plugins/hivepress-social-links/assets/images/icons/email.svg)
    center center no-repeat;
  background-color: #aaa;
  background-size: 20px;
}
.hp-social-links .hp-social-links__item--contact-email img {
  display: none;
}

This adds a new Contact Email field that doesn’t conflict with the built-in account Email field so you can use it instead of the current Email social link that causes issues. Please note that after adding the above snippets, you must also select the new Contact Email option in HivePress/Settings/Vendors/Social Links.

Hope this helps

I am also having a similar issue, but with WhatsApp.

I have used the following PHP snippet as a temporary fix:

add_filter(
	'hivepress/v1/social_links',
	function( $config ) {
		$config['whatsapp'] = [
			'label'  => 'WhatsApp',
			'type'   => 'text',
			'prefix' => 'https://wa.me/',
		];

		return $config;
	}
);

Hi @mohamedshah,

Thanks for the details.

Could you please describe the exact steps to reproduce the issue? I tested it locally by adding WhatsApp to the vendor profile, and it was displayed correctly on the vendor page.

If there is a bug, we’d definitely like to reproduce it on our side so we can investigate and fix it properly.

I will email a temporary WordPress login link to support@hivepress.io, granting you full access to the site.

1 Like

I’m wondering if I should use this quick fix or wait for your actual fix in the software; do yu know what the ETA is of the official fix?

Hi,

This will be fixed in the next update of the Social Links extension. Unfortunately, we cannot provide an exact ETA at the moment.

In the meantime, please use the suggested workaround. We will likely rename the field to contact_email, so this change should not break your current solution after the update, you will simply be able to remove the temporary fix at that point: How to add custom code snippets - HivePress Help Center.