<?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 Adding dynamic phone numbers to pages in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1154333#M43062</link>
    <description>&lt;P&gt;&lt;SPAN&gt;We need to add dynamic phone numbers to our landing pages and emails and we've tried doing this by adding the script, however we need to add a class of .rulertel to phone numbers and there doesn't seem to be a way to do this. Can anyone help me with this?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 May 2025 17:00:28 GMT</pubDate>
    <dc:creator>SOliveiraMP</dc:creator>
    <dc:date>2025-05-19T17:00:28Z</dc:date>
    <item>
      <title>Adding dynamic phone numbers to pages</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1154333#M43062</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We need to add dynamic phone numbers to our landing pages and emails and we've tried doing this by adding the script, however we need to add a class of .rulertel to phone numbers and there doesn't seem to be a way to do this. Can anyone help me with this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 17:00:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1154333#M43062</guid>
      <dc:creator>SOliveiraMP</dc:creator>
      <dc:date>2025-05-19T17:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding dynamic phone numbers to pages</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1154420#M43065</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/909559"&gt;@SOliveiraMP&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you explain what kind of rules you are trying to use currently for the dynamic phone number and how are you trying to display it? For example, are you trying to display it in a custom module or by using smart content?&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 20:23:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1154420#M43065</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2025-05-19T20:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding dynamic phone numbers to pages</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1154705#M43074</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Evaldas, thanks for getting back to me! We just need to add a class to the phone number that is in the menu on the landing pages so that the phone number can be dynamic.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 13:21:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1154705#M43074</guid>
      <dc:creator>SOliveiraMP</dc:creator>
      <dc:date>2025-05-20T13:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding dynamic phone numbers to pages</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1154716#M43075</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/909559"&gt;@SOliveiraMP&lt;/a&gt;&amp;nbsp;could you share a screenshot of how it is currently set up? Are you using the Simple Menu or Advanced Menu?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, what is the rule for it being dynamic? Is it just to add the class or the phone number changes based on the visitor?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will help identify what solution should be applied.&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 13:37:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1154716#M43075</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2025-05-20T13:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding dynamic phone numbers to pages</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1154723#M43076</link>
      <description>&lt;P&gt;It's meant to be in the landing page header, we don't have a phone number now because we need it to be dynamic. We're using the Advanced Menu.&lt;BR /&gt;&lt;BR /&gt;Do you mean the classname? It's rulertel. Yes, the number changes based on the visitor.&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 13:50:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1154723#M43076</guid>
      <dc:creator>SOliveiraMP</dc:creator>
      <dc:date>2025-05-20T13:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding dynamic phone numbers to pages</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1154732#M43077</link>
      <description>&lt;P&gt;So it would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Visitor A, show phone number: 111-111-11111&lt;/P&gt;
&lt;P&gt;Visitor B, show phone number: 222-222-2222&lt;/P&gt;
&lt;P&gt;Visitor C, show phone number: 333-333-3333&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Correct?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, I mean what is the rule that shows the phone number to Visitor&amp;nbsp;A and a different phone number to Visitor B. Would it be based on whether they have a cookie or something else?&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 14:01:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1154732#M43077</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2025-05-20T14:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding dynamic phone numbers to pages</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1155883#M43109</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We're not sure. It's a third party service, so it most likely is a cookie, however we just install the script then wrap the number with a class of rulertel on the normal sales site. Does that make sense?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 17:49:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1155883#M43109</guid>
      <dc:creator>SOliveiraMP</dc:creator>
      <dc:date>2025-05-22T17:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding dynamic phone numbers to pages</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1155916#M43110</link>
      <description>&lt;P&gt;Ok, I think this makes sense now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Ultimately depends on what exactly the script is doing, but since you are using the Advanced Menu, you can try wrapping your link text in a &amp;lt;span&amp;gt; with the rulertel class applied.&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;It would look something like this:&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="evaldas_1-1747939125066.png" style="width: 515px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/146741i36FE2812FA584B0B/image-dimensions/515x161?v=v2" width="515" height="161" role="button" title="evaldas_1-1747939125066.png" alt="evaldas_1-1747939125066.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 18:41:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1155916#M43110</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2025-05-22T18:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding dynamic phone numbers to pages</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1157523#M43135</link>
      <description>&lt;P&gt;Hi Evaldas,&amp;nbsp;we’ve done this, however its not going to work due to the way hubspot put their links in. It’s updating the visual phone number to the ruler number however the actual link is staying as tel:866.202.0005. Is there any other way you would suggest us to try? Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 14:45:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1157523#M43135</guid>
      <dc:creator>SOliveiraMP</dc:creator>
      <dc:date>2025-05-27T14:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding dynamic phone numbers to pages</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1157638#M43140</link>
      <description>&lt;DIV class=""&gt;
&lt;P&gt;Looking at the documentation of the external service, there is an important note about placing the class on the &amp;lt;a&amp;gt; element directly if you want it to be clickable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, in your menu, you can try updating the &amp;lt;span&amp;gt; element to &amp;lt;a&amp;gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;a class="rulertel"&amp;gt;CALL NOW&amp;lt;/a&amp;gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will likely create multiple &amp;lt;a&amp;gt; elements in that menu item and might not be the cleanest implementation, but it should not show up on the front end or interfere with making the number dynamic, so it might work for the use case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 May 2025 17:47:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1157638#M43140</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2025-05-27T17:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding dynamic phone numbers to pages</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1160971#M43196</link>
      <description>&lt;P&gt;It worked now, thank you so much for your help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 17:20:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1160971#M43196</guid>
      <dc:creator>SOliveiraMP</dc:creator>
      <dc:date>2025-06-04T17:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding dynamic phone numbers to pages</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1161004#M43197</link>
      <description>&lt;P&gt;Sure thing! Glad to hear we were able to find the solution&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 18:05:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-dynamic-phone-numbers-to-pages/m-p/1161004#M43197</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2025-06-04T18:05:44Z</dc:date>
    </item>
  </channel>
</rss>

