My app allows users to have their own public profile page. I’d like users to have the ability to add links to other social media profiles.
Right now, I’ve found I can upload the icon image and link the image to a user field so that a user can edit it in their account screen. What I can’t seem to figure out is how to make it dynamic so it only shows if the user has input something in the field.
For example, I’ve got Facebook, Instagram, and Linked in icons on the user’s profile page, what if the user doesn’t have a linked in or doesn’t want to include it? How can I make the LinkedIn icon not show?
Was thinking this could be done with a post but couldn’t work out how that could work unless users had to upload the social icon.
UPDATE: I figured out how to set visability for the image to not show but it doesn’t help with formatting. If I have a line of social icons and I hide icons that the user has not input a value it show’s an empty spot. Any ideas on how to get the images to shift?