Answers.Body: <p>Sounds like you're on the right path. Create a Global matrix field containing an asset field for Social Icon, a text field for Social Url, and a lightswitch field for Enabled/Disabled. Then the user can add new social media icons as needed and manipulate the url.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-15T21:20:37.803Z
Answers.LastActivityDate: 2016-11-15T21:20:37.803Z
Answers.UserDisplayName: Leah Scott
Answers.Body: <p>Many, many possible ways to go about this, but the simplest would be to create a <a href="https://craftcms.com/docs/plain-text-fields" rel="nofollow noreferrer">Plain Text field</a> in the control panel and call it something like "Social Media Link" with a handle of "socialMediaLink" and give it some field instructions along the lines of "Enter the URL for the social media button".</p>
  
  <p>Attach that to the field layout for your <a href="https://craftcms.com/docs/sections-and-entries" rel="nofollow noreferrer">section</a>.</p>
  
  <p>When your client edits the entry for that section, then can enter whatever URL they want.</p>
  
  <p>Your template would display it something like:</p>
  
  <pre><code>&lt;a href="{{ entry.socialMediaLink }}"&gt;&lt;img src="mySocialMediaButton.jpg"&gt;&lt;/a&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-15T21:18:50.793Z
Answers.LastActivityDate: 2016-11-15T21:18:50.793Z
Answers.UserDisplayName: Brad Bell
Body: <p>I want to have the option to have social media icons that will link to different URLs. I currently have it set up so the user can click which icons will display on the page, but how would I have it so they can change the link to what URL they want?</p>
  
Tags: <url>
Title: External URL with image
ThreadText: # External URL with image
  
  (Asked by: username_0 on 2016-11-15)
  
  I want to have the option to have social media icons that will link to different URLs. I currently have it set up so the user can click which icons will display on the page, but how would I have it so they can change the link to what URL they want?
  
  **Tags:** url
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2016-11-15. Score: 2
  
  Sounds like you're on the right path. Create a Global matrix field containing an asset field for Social Icon, a text field for Social Url, and a lightswitch field for Enabled/Disabled. Then the user can add new social media icons as needed and manipulate the url.
  
  
  ---
  
  ### Answer by username_2 on 2016-11-15. Score: 1
  
  Many, many possible ways to go about this, but the simplest would be to create a [Plain Text field](https://craftcms.com/docs/plain-text-fields) in the control panel and call it something like "Social Media Link" with a handle of "socialMediaLink" and give it some field instructions along the lines of "Enter the URL for the social media button".
  
  Attach that to the field layout for your [section](https://craftcms.com/docs/sections-and-entries).
  
  When your client edits the entry for that section, then can enter whatever URL they want.
  
  Your template would display it something like:
  
  ```
  <a href="{{ entry.socialMediaLink }}"><img src="mySocialMediaButton.jpg"></a>
  
  ```
  
  
  ---
  
  