<?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 Overwrite/replace the auto-generated Open Graph Tags (OG Tags) on HubSpot in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Overwrite-replace-the-auto-generated-Open-Graph-Tags-OG-Tags-on/m-p/662361#M29391</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello Everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would like to change the image and title of our social media post-sharing for a few web pages/blogs. Is there a way to overwrite or replace HubSpot's current auto-generated open graph tags (OG tags)?&lt;/DIV&gt;&lt;DIV&gt;Could you please let me know if you have any other alternative ideas to implement?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you in advance!&lt;/DIV&gt;</description>
    <pubDate>Sat, 09 Jul 2022 19:15:42 GMT</pubDate>
    <dc:creator>Nagashree</dc:creator>
    <dc:date>2022-07-09T19:15:42Z</dc:date>
    <item>
      <title>Overwrite/replace the auto-generated Open Graph Tags (OG Tags) on HubSpot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Overwrite-replace-the-auto-generated-Open-Graph-Tags-OG-Tags-on/m-p/662361#M29391</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello Everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would like to change the image and title of our social media post-sharing for a few web pages/blogs. Is there a way to overwrite or replace HubSpot's current auto-generated open graph tags (OG tags)?&lt;/DIV&gt;&lt;DIV&gt;Could you please let me know if you have any other alternative ideas to implement?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you in advance!&lt;/DIV&gt;</description>
      <pubDate>Sat, 09 Jul 2022 19:15:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Overwrite-replace-the-auto-generated-Open-Graph-Tags-OG-Tags-on/m-p/662361#M29391</guid>
      <dc:creator>Nagashree</dc:creator>
      <dc:date>2022-07-09T19:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite/replace the auto-generated Open Graph Tags (OG Tags) on HubSpot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Overwrite-replace-the-auto-generated-Open-Graph-Tags-OG-Tags-on/m-p/662821#M29396</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/405555"&gt;@Nagashree&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;short answer: yes there is a way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But for best solution you should have a developer to your side.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My personal approach is always:&lt;/P&gt;
&lt;P&gt;- open the base layout of your theme. (most likely base.html)&lt;/P&gt;
&lt;P&gt;- add a new "building block" like this after the {{standard_header_includes}}-tag to the &amp;lt;head&amp;gt;-tag&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% block head_tag %}
{% endblock head_tag %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- open your desired template you'd like to change the OG infos of and write it like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% block head_tag%}
&amp;lt;meta property="og:title" content="{{content.name}}" /&amp;gt;
&amp;lt;meta property="og:description" content="{{content.post_body|striptags|truncate(160,'...', true)" /&amp;gt;
&amp;lt;meta property="og:image" content="{{content.featured_image}}" /&amp;gt;
{% endblock head_tag %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This Hubl codes will get all the informations of the blog posts or pages. If you'd like to change them manually you should consider a custom module for this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can wait - I can create such module for my freebieFriday this week. Then you could download it from my &lt;A href="https://github.com/AvorB/freebie-friday" target="_blank" rel="noopener"&gt;github repo&lt;/A&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;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 13:55:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Overwrite-replace-the-auto-generated-Open-Graph-Tags-OG-Tags-on/m-p/662821#M29396</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2022-07-11T13:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite/replace the auto-generated Open Graph Tags (OG Tags) on HubSpot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Overwrite-replace-the-auto-generated-Open-Graph-Tags-OG-Tags-on/m-p/663911#M29442</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 17:37:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Overwrite-replace-the-auto-generated-Open-Graph-Tags-OG-Tags-on/m-p/663911#M29442</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-07-12T17:37:06Z</dc:date>
    </item>
  </channel>
</rss>

