Add social profile widget button

Dear Support,

I would like to add an email button at the social profile widget. Which file(s) and at which point do I have to tweak to do this?

Thanks in advance!

Hello there,

You can add a menu item with Custom Links. In the URL field, enter: mailto:your@mail.com. In the Navigation Label field, enter any text of your choice; it won’t be displayed though.

To display the email icon which is associated with the new menu item you just created, apply the following CSS code through the Simple Custom CSS plugin or child theme’s style.css.

.social-menu-widget a[href*="mailto"]::before {
   content: '\f0e0';
}

Regards,
Kharis

You are the best!

Just a small detail: When you click to a social icon, by default it opens in target="_blank". Can I override this behavior for the email button somehow?

You can’t, I am afraid. Because mailto: always opens email application.

Regards,
Kharis

Ok, no problem, you 've done enough already! If I find any workaround I will post it here.

Warm regards

Thank you. That would be very useful for others. :slight_smile:

Warm regards,
Kharis