<?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 anchor links to page in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Add-anchor-links-to-page/m-p/1065344#M41190</link>
    <description>&lt;P&gt;Here is another option, but works off of what you said. If you look at the source code for any HubSpot page, I happen to be using a themed page, you can get the div id. Then, the same as you suggest, use the # to link to that div id on your page. Now I can link to other sections on my webpage. Thank you for putting me on the right path to a solution!!&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2024 18:00:09 GMT</pubDate>
    <dc:creator>stacy_jenkins</dc:creator>
    <dc:date>2024-11-05T18:00:09Z</dc:date>
    <item>
      <title>Add anchor links to page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Add-anchor-links-to-page/m-p/1002638#M39802</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Is there a way I can make the format buttons on the page below have an an anchor tag so I can link directly to specific formats of resources?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to include a link directly to our guides.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.sunrisesoftware.com/resources" target="_blank" rel="noopener noreferrer"&gt;https://www.sunrisesoftware.com/resources&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The page is using custom code and custom module for these buttons.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 10:22:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Add-anchor-links-to-page/m-p/1002638#M39802</guid>
      <dc:creator>EWright44</dc:creator>
      <dc:date>2024-07-09T10:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add anchor links to page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Add-anchor-links-to-page/m-p/1002647#M39803</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/789844"&gt;@EWright44&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;by default you should be able to set the button to "External" and just type "#MY-ANCHOR" as the URL. HubSpot might display that there's an error, but it will work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2024-07-09 um 12.30.58.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/121407i0296452B359E9AC1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2024-07-09 um 12.30.58.png" alt="Bildschirmfoto 2024-07-09 um 12.30.58.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To add a Jumpmark to the page add a rich-text(if you're in the drag&amp;amp;drop), switch to the source-code view and type:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;div id="MY-ANCHOR" style="height:0;"&amp;gt;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another possibility might be to create a simple custom module with two text inputs(not rich-text) like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;a href="{{ module.anchor|lower|replace(" ", "-") }}" class="btn btn-primary"&amp;gt; {# You might want to change the button classes to the ones from your theme #}
   {{ module.anchor_label }}
&amp;lt;/a&amp;gt;&lt;/LI-CODE&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;quick tip for editor experience: add this to the custom module if you'd like to show the used anchor while being in the page-editor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;a href="{{ module.anchor|lower|replace(" ", "-") }}" class="btn btn-primary"&amp;gt; {# You might want to change the button classes to the ones from your theme #}
   {{ module.anchor_label }}
&amp;lt;/a&amp;gt;

{# show the anchor in the page editor #}
{% if is_in_page editor %}
   &amp;lt;strong style="padding:.5rem; background:#E8E8E8;color:#878787; text-align:center"&amp;gt; {# feel free to modify the colors #}
      {{ module.anchor|lower|replace(" ", "-") }}
   &amp;lt;/strong&amp;gt;
{% endif %}&lt;/LI-CODE&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;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 17:56:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Add-anchor-links-to-page/m-p/1002647#M39803</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2024-07-09T17:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add anchor links to page</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Add-anchor-links-to-page/m-p/1065344#M41190</link>
      <description>&lt;P&gt;Here is another option, but works off of what you said. If you look at the source code for any HubSpot page, I happen to be using a themed page, you can get the div id. Then, the same as you suggest, use the # to link to that div id on your page. Now I can link to other sections on my webpage. Thank you for putting me on the right path to a solution!!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 18:00:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Add-anchor-links-to-page/m-p/1065344#M41190</guid>
      <dc:creator>stacy_jenkins</dc:creator>
      <dc:date>2024-11-05T18:00:09Z</dc:date>
    </item>
  </channel>
</rss>

