Author Page - Social Media Accounts

Is it possible to remove the Facebook and Twitter icons from the author profile page (.e.g and replace them with Linkedin?

Hi @Sean_Kahn, at the minute the social link fields are limited to Twitter, Facebook and a website URL.

However if the author hasn’t added a Facebook and Twitter profile those icons shouldn’t appear. To add a LinkedIn icon you could add the link to the author bio description and then use the following JavaScript on the author template to replace the linked text with an icon:

[...document.querySelectorAll('a[href*=""]')].map(link => {
	link.innerHTML = `
		<svg><title>${link.textContent}</title>... icon code...</svg>

I’ve made a demo here to show what happens:

Hope this helps, if you have any queries just ask

1 Like