<?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: Add Image Title Tag to Blog Post Images in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Add-Image-Title-Tag-to-Blog-Post-Images/m-p/741136#M32297</link>
    <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/114957"&gt;@Syeda_Fatima&lt;/a&gt;!&lt;BR /&gt;&lt;BR /&gt;So, by using HubSpot CMS Hub API, I can access the blog posts image and title, and then use this information to add the missing "title" attribute to the "img" tag in HTML of "Blog Content" module? E.g:&lt;BR /&gt;Before:&lt;BR /&gt;&amp;lt;img src="&lt;A href="https://f.hubspotusercontent20.net/" target="_blank"&gt;https://f.hubspotusercontent20.net/&lt;/A&gt;......." alt="ABC"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;After:&lt;BR /&gt;&amp;lt;img src="&lt;A href="https://f.hubspotusercontent20.net/" target="_blank"&gt;https://f.hubspotusercontent20.net/&lt;/A&gt;......." alt="ABC" title="((Title of the Blog))"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Apologies if I wasn't this clear before.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2023 11:50:07 GMT</pubDate>
    <dc:creator>iusmanabbasi</dc:creator>
    <dc:date>2023-01-13T11:50:07Z</dc:date>
    <item>
      <title>Add Image Title Tag to Blog Post Images</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Add-Image-Title-Tag-to-Blog-Post-Images/m-p/740484#M32277</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a website that has over 400 blog posts. Is there a way to add a Title field to the post's hero/main image via code or something similar in HubSpot? The images are placed inside the "Blog Post" module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 07:26:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Add-Image-Title-Tag-to-Blog-Post-Images/m-p/740484#M32277</guid>
      <dc:creator>iusmanabbasi</dc:creator>
      <dc:date>2023-01-12T07:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add Image Title Tag to Blog Post Images</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Add-Image-Title-Tag-to-Blog-Post-Images/m-p/740901#M32288</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/470807"&gt;@iusmanabbasi&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out! Are you wanting to batch this? Or are you needing another approach?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/114957"&gt;@Syeda_Fatima&lt;/a&gt;&amp;nbsp;do you have any thoughts here?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 22:21:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Add-Image-Title-Tag-to-Blog-Post-Images/m-p/740901#M32288</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-01-12T22:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add Image Title Tag to Blog Post Images</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Add-Image-Title-Tag-to-Blog-Post-Images/m-p/741097#M32295</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;, Thanks for tagging me here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And yes, i have a suggestion on this concern and would love to share it with&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/470807"&gt;@iusmanabbasi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/470807"&gt;@iusmanabbasi&lt;/a&gt;,&amp;nbsp;&lt;SPAN data-offset-key="b0ni7-53-0"&gt;Yes&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-54-0"&gt;,&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-55-0"&gt; you&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-56-0"&gt; can&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-57-0"&gt; add&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-58-0"&gt; a&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-59-0"&gt; title&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-60-0"&gt; field&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-61-0"&gt; to&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-62-0"&gt; the&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-63-0"&gt; post&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-64-0"&gt;'s&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-65-0"&gt; hero&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-66-0"&gt;/&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-67-0"&gt;main&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-68-0"&gt; image&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-69-0"&gt; via&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-70-0"&gt; code&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-71-0"&gt;.&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-72-0"&gt; You&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-73-0"&gt; can&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-74-0"&gt; use&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-75-0"&gt; the&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-76-0"&gt; Hub&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-77-0"&gt;Spot&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-78-0"&gt; CMS&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-79-0"&gt; Hub&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-80-0"&gt; API&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-81-0"&gt; to&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-82-0"&gt; add&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-83-0"&gt; a&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-84-0"&gt; custom&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-85-0"&gt; field&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-86-0"&gt; to&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-87-0"&gt; the&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-88-0"&gt; blog&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-89-0"&gt; post&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-90-0"&gt; module&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-91-0"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-offset-key="b0ni7-92-0"&gt;The&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-93-0"&gt; custom&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-94-0"&gt; field&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-95-0"&gt; should&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-96-0"&gt; be&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-97-0"&gt; of&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-98-0"&gt; type&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-99-0"&gt; "&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-100-0"&gt;title&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-101-0"&gt;"&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-102-0"&gt; and&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-103-0"&gt; should&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-104-0"&gt; have&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-105-0"&gt; an&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-106-0"&gt; associated&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-107-0"&gt; value&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-108-0"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-offset-key="b0ni7-109-0"&gt;Once&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-110-0"&gt; you&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-111-0"&gt; have&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-112-0"&gt; added&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-113-0"&gt; the&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-114-0"&gt; custom&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-115-0"&gt; field&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-116-0"&gt;,&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-117-0"&gt; you&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-118-0"&gt; can&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-119-0"&gt; use&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-120-0"&gt; the&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-121-0"&gt; Hub&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-122-0"&gt;Spot&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-123-0"&gt; CMS&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-124-0"&gt; Hub&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-125-0"&gt; API&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-126-0"&gt; to&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-127-0"&gt; fetch&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-128-0"&gt; the&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-129-0"&gt; post&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-130-0"&gt;'s&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-131-0"&gt; hero&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-132-0"&gt;/&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-133-0"&gt;main&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-134-0"&gt; image&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-135-0"&gt;,&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-136-0"&gt; along&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-137-0"&gt; with&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-138-0"&gt; its&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-139-0"&gt; title&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-140-0"&gt;,&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-141-0"&gt; from&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-142-0"&gt; the&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-143-0"&gt; blog&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-144-0"&gt; post&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-145-0"&gt; module&lt;/SPAN&gt;&lt;SPAN data-offset-key="b0ni7-146-0"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-offset-key="b0ni7-146-0"&gt;Hope this helps! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 10:13:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Add-Image-Title-Tag-to-Blog-Post-Images/m-p/741097#M32295</guid>
      <dc:creator>Syeda_Fatima</dc:creator>
      <dc:date>2023-01-13T10:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Add Image Title Tag to Blog Post Images</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Add-Image-Title-Tag-to-Blog-Post-Images/m-p/741136#M32297</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/114957"&gt;@Syeda_Fatima&lt;/a&gt;!&lt;BR /&gt;&lt;BR /&gt;So, by using HubSpot CMS Hub API, I can access the blog posts image and title, and then use this information to add the missing "title" attribute to the "img" tag in HTML of "Blog Content" module? E.g:&lt;BR /&gt;Before:&lt;BR /&gt;&amp;lt;img src="&lt;A href="https://f.hubspotusercontent20.net/" target="_blank"&gt;https://f.hubspotusercontent20.net/&lt;/A&gt;......." alt="ABC"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;After:&lt;BR /&gt;&amp;lt;img src="&lt;A href="https://f.hubspotusercontent20.net/" target="_blank"&gt;https://f.hubspotusercontent20.net/&lt;/A&gt;......." alt="ABC" title="((Title of the Blog))"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Apologies if I wasn't this clear before.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 11:50:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Add-Image-Title-Tag-to-Blog-Post-Images/m-p/741136#M32297</guid>
      <dc:creator>iusmanabbasi</dc:creator>
      <dc:date>2023-01-13T11:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add Image Title Tag to Blog Post Images</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Add-Image-Title-Tag-to-Blog-Post-Images/m-p/741161#M32299</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/470807"&gt;@iusmanabbasi&lt;/a&gt;,&amp;nbsp;Yes, this can be done by using the HubSpot CMS Hub API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the API to access the blog posts image and title, and then use this information to add the missing "title" attribute to the "img" tag in the HTML of the "Blog Content" module.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to do this, you will need to make a GET request to the HubSpot CMS Hub API, passing in the blog post’s ID as a parameter. This will return the metadata of the blog post, including the title and the image URL. You can then use this data to add the title attribute and populate it with the blog post title.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example of a request to the HubSpot CMS Hub API that you can use to retrieve the blog post data (replace YOUR_BLOG_POST_ID with the ID of the blog post):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GET &lt;A href="https://api.hubapi.com/content/api/v2/blog-posts/YOUR_BLOG_POST_ID" target="_blank"&gt;https://api.hubapi.com/content/api/v2/blog-posts/YOUR_BLOG_POST_ID&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find more information about the HubSpot CMS Hub API from this suggested doc:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/cms/features/cms-apis" target="_blank"&gt;https://developers.hubspot.com/docs/cms/features/cms-apis&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 12:47:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Add-Image-Title-Tag-to-Blog-Post-Images/m-p/741161#M32299</guid>
      <dc:creator>Syeda_Fatima</dc:creator>
      <dc:date>2023-01-13T12:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add Image Title Tag to Blog Post Images</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Add-Image-Title-Tag-to-Blog-Post-Images/m-p/741606#M32316</link>
      <description>&lt;P&gt;You don't really need to go through the complexity of using the API to do this. You can just go into the Blog Post module's code in the design manager and add title="{{ content.name }}" to the image tag.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;img src="{{ content.featured_image }}" alt="{{ content.featured_image_alt_text }}" title="(( content.name ))"&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 05:54:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Add-Image-Title-Tag-to-Blog-Post-Images/m-p/741606#M32316</guid>
      <dc:creator>alyssamwilie</dc:creator>
      <dc:date>2023-01-15T05:54:27Z</dc:date>
    </item>
  </channel>
</rss>

