<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding links to pictures on website in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/201990#M7583</link>
    <description>&lt;P&gt;&lt;STRONG&gt;hi Stephanie,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you for the instruction,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I found the place to add the code you suggested, however, the link field doesn't appear. Could you please help me more with this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the code with the image link I added&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;{% if item.image.src %}&lt;BR /&gt;&amp;lt;a href="{{ item.image_url }}"&amp;gt;&lt;BR /&gt;&amp;lt;img src="{{ item.image.src }}" alt="{{ item.image.alt }}" width="{{ item.image.width }}" height="{{ item.image.height }}"&amp;gt;&lt;BR /&gt;&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;{% endif %}&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 12:08:29 GMT</pubDate>
    <dc:creator>maianhtom</dc:creator>
    <dc:date>2018-08-14T12:08:29Z</dc:date>
    <item>
      <title>Adding links to pictures on website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/201603#M7515</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to add links to some images on our website, but it is not possible to do that on the page editing level. There isn't a field to add those links in the interface. How can I do that in design manager?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 13:43:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/201603#M7515</guid>
      <dc:creator>maianhtom</dc:creator>
      <dc:date>2018-08-10T13:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding links to pictures on website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/201617#M7518</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should be able to do so from the page editing level:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If it's an &lt;STRONG&gt;Image&lt;/STRONG&gt; module, click on it and you will see a "Link (optional)" field on the sidebar.&lt;/LI&gt;&lt;LI&gt;If it's a &lt;STRONG&gt;Rich Text&lt;/STRONG&gt; module, click on the image and then click on the "Insert/edit link" option on the toolbar and it should let you insert a link around that image.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Alternatively, on the Rich Text module you can click on "Source code" option on the toolbar (it looks like this "&amp;lt;/&amp;gt;") and, around the image tag:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;img src="https://cdn2.hubspot.net/hubfs/1234567/myimage.png" alt="myimage" width="143" style="width: 143px; display: block; margin: 0px auto;"&amp;gt;&lt;/PRE&gt;&lt;P&gt;Add anchor link tags, like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;a href="http://www.hubspot.com"&amp;gt;&amp;lt;img src="https://cdn2.hubspot.net/hubfs/1234567/myimage.png" alt="myimage" width="143" style="width: 143px; display: block; margin: 0px auto;"&amp;gt;&amp;lt;/a&amp;gt;&lt;/PRE&gt;&lt;P&gt;If it's neither type of module, let us know what type of module is being used or send a link to the page/page preview and we can take a look into how to edit it from the Design Manager.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that helps!&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;&lt;IMG src="https://cdn2.hubspot.net/hubfs/1951013/Logos/stephanieogaygarcialogo_black.png" border="0" alt="Stephanie O'Gay Garcia" width="300" /&gt;&lt;/A&gt;HubSpot Design / Development / Automation&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 14:44:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/201617#M7518</guid>
      <dc:creator>Stephanie-OG</dc:creator>
      <dc:date>2018-08-10T14:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding links to pictures on website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/201750#M7541</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;Stephanie&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply,&lt;/P&gt;&lt;P&gt;It is not an i&lt;SPAN&gt;mage module or a rich text model. I cannot click on an individual picture. All pictures are inside a model field and when I click on the field a toolbar appears on the left side where I can add more pictures or change those pictures but there isn't a place to add links to those pictures.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The toolbar to change pictures is shown in the picture below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="picture field.png" style="width: 871px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/11103iF2FB6EC6F3154BE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="picture field.png" alt="picture field.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Aug 2018 08:03:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/201750#M7541</guid>
      <dc:creator>maianhtom</dc:creator>
      <dc:date>2018-08-12T08:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding links to pictures on website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/201876#M7563</link>
      <description>&lt;P&gt;That looks like it's an image field in a custom module. Those don't have a link option by default so it would need to be added to the custom module itself.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the custom module, you can add in another field for the image link and then wrap it around the image code. If you have something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if module.image_field.src %}
	&amp;lt;img src="{{ module.image_field.src }}" alt="{{ module.image_field.alt }}" width="{{ module.image_field.width }}" height="{{ module.image_field.height }}"&amp;gt;
{% endif %}&lt;/PRE&gt;&lt;P&gt;You can add in a text field called "Image URL" where you can enter the URL and then add anchor tags around the image code, something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if module.image_field.src %}
  &amp;lt;a href="{{ module.image_url }}"&amp;gt;
    &amp;lt;img src="{{ module.image_field.src }}" alt="{{ module.image_field.alt }}" width="{{ module.image_field.width }}" height="{{ module.image_field.height }}"&amp;gt;
  &amp;lt;/a&amp;gt;
{% endif %}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Making the change&amp;nbsp;will require some basic coding knowledge so, if you're unsure, I'd recommend checking in with your developer or asking for help from one of the freelancers on the community.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;&lt;IMG src="https://cdn2.hubspot.net/hubfs/1951013/Logos/stephanieogaygarcialogo_black.png" border="0" alt="Stephanie O'Gay Garcia" width="300" /&gt;&lt;/A&gt;HubSpot Design / Development / Automation&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 15:42:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/201876#M7563</guid>
      <dc:creator>Stephanie-OG</dc:creator>
      <dc:date>2018-08-13T15:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding links to pictures on website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/201986#M7581</link>
      <description>&lt;P&gt;&lt;STRONG&gt;hi Stephanie,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you for the instruction,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I found the place to add the code you suggested, however, the link field doesn't appear. Could you please help me more with this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the code where I add the image link&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;{% if item.image.src %}&lt;BR /&gt;&amp;lt;a href="{{ item.image_url }}"&amp;gt;&lt;BR /&gt;&amp;lt;img src="{{ item.image.src }}" alt="{{ item.image.alt }}" width="{{ item.image.width }}" height="{{ item.image.height }}"&amp;gt;&lt;BR /&gt;&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;{% endif %}&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 11:59:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/201986#M7581</guid>
      <dc:creator>maianhtom</dc:creator>
      <dc:date>2018-08-14T11:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding links to pictures on website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/201990#M7583</link>
      <description>&lt;P&gt;&lt;STRONG&gt;hi Stephanie,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you for the instruction,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I found the place to add the code you suggested, however, the link field doesn't appear. Could you please help me more with this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the code with the image link I added&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;{% if item.image.src %}&lt;BR /&gt;&amp;lt;a href="{{ item.image_url }}"&amp;gt;&lt;BR /&gt;&amp;lt;img src="{{ item.image.src }}" alt="{{ item.image.alt }}" width="{{ item.image.width }}" height="{{ item.image.height }}"&amp;gt;&lt;BR /&gt;&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;{% endif %}&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 12:08:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/201990#M7583</guid>
      <dc:creator>maianhtom</dc:creator>
      <dc:date>2018-08-14T12:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding links to pictures on website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/202002#M7589</link>
      <description>&lt;P&gt;No worries, if you're not familiar with the COS/coding it can take a little bit to pick up!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In custom modules, you have the option to add fields on the right-hand side:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="community-custommodule.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/11141iFB1599BF4A2EC10A/image-size/large?v=v2&amp;amp;px=999" role="button" title="community-custommodule.png" alt="community-custommodule.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the screenshot above, I've cliked on "Add field" and added a Text field which I've called "Image URL" (you can see below it labels it image_url), which is where HubSpot pulls the URL from in the code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if module.image_field.src %}
  &amp;lt;a href="&lt;STRONG&gt;{{ module.image_url }}&lt;/STRONG&gt;"&amp;gt;
    &amp;lt;img src="{{ module.image_field.src }}" alt="{{ module.image_field.alt }}" width="{{ module.image_field.width }}" height="{{ module.image_field.height }}"&amp;gt;
  &amp;lt;/a&amp;gt;
{% endif %}&lt;/PRE&gt;&lt;P&gt;Now when I click "Preview" in the upper right-hand corner, I can see what the module fields will look like when I use the module in a template:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="community-custommodulepreview.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/11143i62A0784CA8188DC9/image-size/large?v=v2&amp;amp;px=999" role="button" title="community-custommodulepreview.png" alt="community-custommodulepreview.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My example is a pretty simple module but you may see more code in your custom module for any other behaviour it's adding.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;&lt;IMG src="https://cdn2.hubspot.net/hubfs/1951013/Logos/stephanieogaygarcialogo_black.png" border="0" alt="Stephanie O'Gay Garcia" width="300" /&gt;&lt;/A&gt;HubSpot Design / Development / Automation&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 12:36:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/202002#M7589</guid>
      <dc:creator>Stephanie-OG</dc:creator>
      <dc:date>2018-08-14T12:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding links to pictures on website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/202064#M7593</link>
      <description>&lt;P&gt;Hi Stephanie,&lt;/P&gt;&lt;P&gt;You are awesome! The method works great&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;Would it also be possible to have the link opened in another browser tab?&lt;/P&gt;&lt;P&gt;Br, Anh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 17:51:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/202064#M7593</guid>
      <dc:creator>maianhtom</dc:creator>
      <dc:date>2018-08-14T17:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding links to pictures on website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/202074#M7594</link>
      <description>&lt;P&gt;No problem at all! Feel free to mark it as a solution so that others can find it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, you can add a target to the link so that it opens in a new tab. Just add &lt;STRONG&gt;target="_blank"&lt;/STRONG&gt; to your anchor tag:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if module.image_field.src %}
  &amp;lt;a href="{{ module.image_url }}" &lt;STRONG&gt;target="_blank"&lt;/STRONG&gt;&amp;gt;
    &amp;lt;img src="{{ module.image_field.src }}" alt="{{ module.image_field.alt }}" width="{{ module.image_field.width }}" height="{{ module.image_field.height }}"&amp;gt;
  &amp;lt;/a&amp;gt;
{% endif %}&lt;/PRE&gt;&lt;HR /&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;&lt;IMG src="https://cdn2.hubspot.net/hubfs/1951013/Logos/stephanieogaygarcialogo_black.png" border="0" alt="Stephanie O'Gay Garcia" width="300" /&gt;&lt;/A&gt;HubSpot Design / Development / Automation&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 18:14:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/202074#M7594</guid>
      <dc:creator>Stephanie-OG</dc:creator>
      <dc:date>2018-08-14T18:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding links to pictures on website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/202087#M7597</link>
      <description>&lt;P&gt;Thanks! it works well&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 19:27:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-links-to-pictures-on-website/m-p/202087#M7597</guid>
      <dc:creator>maianhtom</dc:creator>
      <dc:date>2018-08-14T19:27:56Z</dc:date>
    </item>
  </channel>
</rss>

