<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	 xmlns:media="http://search.yahoo.com/mrss/" 
	>
<channel>
	<title>
	Comments on: How to Trigger Messages On Button or Link ClickRead this detailed guide on how to trigger messages. Get ready to new some cool tricks. Last updated on February 25, 2026	</title>
	<atom:link href="https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/</link>
	<description>WordPress plugins to nurture and grow your tribe</description>
	<lastBuildDate>Wed, 25 Feb 2026 06:05:10 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.3.8</generator>
	<item>
		<title>
		By: Rosie		</title>
		<link>https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/#comment-67266</link>

		<dc:creator><![CDATA[Rosie]]></dc:creator>
		<pubDate>Mon, 25 Jun 2018 10:29:36 +0000</pubDate>
		<guid isPermaLink="false">https://www.icegram.com/?p=2735#comment-67266</guid>

					<description><![CDATA[You&#039;re so interesting! I don&#039;t suppose I&#039;ve read a single thing like this before. So nice to find someone with original thoughts on this subject matter.
Seriously.. many thanks for starting this up. This website is something that&#039;s needed on the internet, someone with a bit of originality!]]></description>
			<content:encoded><![CDATA[<p>You&#8217;re so interesting! I don&#8217;t suppose I&#8217;ve read a single thing like this before. So nice to find someone with original thoughts on this subject matter.<br />
Seriously.. many thanks for starting this up. This website is something that&#8217;s needed on the internet, someone with a bit of originality!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alex		</title>
		<link>https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/#comment-15702</link>

		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 07 Jan 2016 06:10:34 +0000</pubDate>
		<guid isPermaLink="false">https://www.icegram.com/?p=2735#comment-15702</guid>

					<description><![CDATA[Hi,

this is a great guide and everything works after some trial. However, after you click the popup background and the same button right after, the popup is not shown. You can check this here: http://yourbuilder.co.nz/services/new-homes/

Please wait for the document to be fully loaded and then click any of the &quot;View Plan&quot; buttons to show the popup.

I have already contacted your support and will appreciate any help.

Thanks,
Alex.]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>this is a great guide and everything works after some trial. However, after you click the popup background and the same button right after, the popup is not shown. You can check this here: <a href="http://yourbuilder.co.nz/services/new-homes/" rel="nofollow ugc">http://yourbuilder.co.nz/services/new-homes/</a></p>
<p>Please wait for the document to be fully loaded and then click any of the &#8220;View Plan&#8221; buttons to show the popup.</p>
<p>I have already contacted your support and will appreciate any help.</p>
<p>Thanks,<br />
Alex.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Andrea Juliao		</title>
		<link>https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/#comment-10525</link>

		<dc:creator><![CDATA[Andrea Juliao]]></dc:creator>
		<pubDate>Mon, 21 Sep 2015 07:35:35 +0000</pubDate>
		<guid isPermaLink="false">https://www.icegram.com/?p=2735#comment-10525</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/#comment-10485&quot;&gt;kelechi azuogu&lt;/a&gt;.

@kelechi azuogu: Can you please explain little more about, which link you have to disappear. Do contact us at hello@icegram.com and give us a link to a page where you’ve setup the JS / link to open a message. 
We can take a look and tell you how to make it work.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/#comment-10485">kelechi azuogu</a>.</p>
<p>@kelechi azuogu: Can you please explain little more about, which link you have to disappear. Do contact us at <a href="mailto:hello@icegram.com">hello@icegram.com</a> and give us a link to a page where you’ve setup the JS / link to open a message.<br />
We can take a look and tell you how to make it work.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: kelechi azuogu		</title>
		<link>https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/#comment-10485</link>

		<dc:creator><![CDATA[kelechi azuogu]]></dc:creator>
		<pubDate>Sun, 20 Sep 2015 16:27:35 +0000</pubDate>
		<guid isPermaLink="false">https://www.icegram.com/?p=2735#comment-10485</guid>

					<description><![CDATA[how do you make the link dissapear after the button is clicked. i have the icegram window popup, but I want the link to disappear]]></description>
			<content:encoded><![CDATA[<p>how do you make the link dissapear after the button is clicked. i have the icegram window popup, but I want the link to disappear</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Andrea Juliao		</title>
		<link>https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/#comment-7739</link>

		<dc:creator><![CDATA[Andrea Juliao]]></dc:creator>
		<pubDate>Fri, 14 Aug 2015 11:31:15 +0000</pubDate>
		<guid isPermaLink="false">https://www.icegram.com/?p=2735#comment-7739</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/#comment-7440&quot;&gt;pat&lt;/a&gt;.

The easiest way is to create a campaign with popup targeting to the page,
which opens on the &quot;Subscribe&quot; link in Menu.
Or
You can also bind/tie the popup with menu item.
For that, please follow the steps below.

1. Create campaign and use &quot;Behavior Trigger&quot; to set show trigger &gt; using javascript.

It will give you a code, which will be used in the bind event.
e.g. &lt;code&gt;window.icegram.get_message_by_id(902).show();&lt;/code&gt;
(For help on how to get the code. Kindly look into the above article.)

2. Find the id/class of the Menu link.
e.g. menu-item-873

&lt;a href=&quot;https://developer.chrome.com/devtools/docs/dom-and-styles&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;How to find the id/class? read this.&lt;/a&gt;

3. Add the below code in the message body of the popup with the script tag.

&lt;code&gt;
/*Replace &quot;menu-item-873&quot; with your link id*/
    jQuery(document).on(&#039;click&#039;, &#039;#menu-item-873 a&#039;, function(e){
        e.preventDefault();
        /*Replace with javacript code to show message*/
        window.icegram.get_message_by_id(902).show();
    });
&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/#comment-7440">pat</a>.</p>
<p>The easiest way is to create a campaign with popup targeting to the page,<br />
which opens on the &#8220;Subscribe&#8221; link in Menu.<br />
Or<br />
You can also bind/tie the popup with menu item.<br />
For that, please follow the steps below.</p>
<p>1. Create campaign and use &#8220;Behavior Trigger&#8221; to set show trigger > using javascript.</p>
<p>It will give you a code, which will be used in the bind event.<br />
e.g. <code>window.icegram.get_message_by_id(902).show();</code><br />
(For help on how to get the code. Kindly look into the above article.)</p>
<p>2. Find the id/class of the Menu link.<br />
e.g. menu-item-873</p>
<p><a href="https://developer.chrome.com/devtools/docs/dom-and-styles" target="_blank" rel="nofollow">How to find the id/class? read this.</a></p>
<p>3. Add the below code in the message body of the popup with the script tag.</p>
<p><code><br />
/*Replace "menu-item-873" with your link id*/<br />
    jQuery(document).on('click', '#menu-item-873 a', function(e){<br />
        e.preventDefault();<br />
        /*Replace with javacript code to show message*/<br />
        window.icegram.get_message_by_id(902).show();<br />
    });<br />
</code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: pat		</title>
		<link>https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/#comment-7440</link>

		<dc:creator><![CDATA[pat]]></dc:creator>
		<pubDate>Mon, 10 Aug 2015 20:18:54 +0000</pubDate>
		<guid isPermaLink="false">https://www.icegram.com/?p=2735#comment-7440</guid>

					<description><![CDATA[Is there a way to tie the JS method to the Wordpress integrated Menu system? Trying to put a &quot;subscribe&quot; link on the Menu...but not sure how to tie the onclick event to it. Would appreciate any help. Thanks!]]></description>
			<content:encoded><![CDATA[<p>Is there a way to tie the JS method to the WordPress integrated Menu system? Trying to put a &#8220;subscribe&#8221; link on the Menu&#8230;but not sure how to tie the onclick event to it. Would appreciate any help. Thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JohnP		</title>
		<link>https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/#comment-6731</link>

		<dc:creator><![CDATA[JohnP]]></dc:creator>
		<pubDate>Fri, 31 Jul 2015 04:04:30 +0000</pubDate>
		<guid isPermaLink="false">https://www.icegram.com/?p=2735#comment-6731</guid>

					<description><![CDATA[This is working as expected for me on a desktop. 

On my android phone and tablet however, neither the link or the button do anything.

I have both phone and tablet ticked in the campaign settings.

I checked your page www.icegram.com/demos/ and none of the links show up on my tablet. The live demos do not seem to work either. 

Is this supposed to work on mobile devices?]]></description>
			<content:encoded><![CDATA[<p>This is working as expected for me on a desktop. </p>
<p>On my android phone and tablet however, neither the link or the button do anything.</p>
<p>I have both phone and tablet ticked in the campaign settings.</p>
<p>I checked your page <a href="http://www.icegram.com/demos/" rel="ugc">http://www.icegram.com/demos/</a> and none of the links show up on my tablet. The live demos do not seem to work either. </p>
<p>Is this supposed to work on mobile devices?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Annie		</title>
		<link>https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/#comment-6385</link>

		<dc:creator><![CDATA[Annie]]></dc:creator>
		<pubDate>Thu, 23 Jul 2015 22:40:16 +0000</pubDate>
		<guid isPermaLink="false">https://www.icegram.com/?p=2735#comment-6385</guid>

					<description><![CDATA[When I tried running window.icegram.get_message_by_id().show() code from Developer Console I get this. 

Uncaught TypeError: Cannot read property &#039;get_message_by_id&#039; of undefined
    at :2:15
    at Object.InjectedScript._evaluateOn (:905:140)
    at Object.InjectedScript._evaluateAndWrap (:838:34)
    at Object.InjectedScript.evaluate (:694:21)


I&#039;ve used this code exactly except I replace with the correct ID


It doesn&#039;t work for me.]]></description>
			<content:encoded><![CDATA[<p>When I tried running window.icegram.get_message_by_id().show() code from Developer Console I get this. </p>
<p>Uncaught TypeError: Cannot read property &#8216;get_message_by_id&#8217; of undefined<br />
    at :2:15<br />
    at Object.InjectedScript._evaluateOn (:905:140)<br />
    at Object.InjectedScript._evaluateAndWrap (:838:34)<br />
    at Object.InjectedScript.evaluate (:694:21)</p>
<p>I&#8217;ve used this code exactly except I replace with the correct ID</p>
<p>It doesn&#8217;t work for me.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: iceadmin		</title>
		<link>https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/#comment-6105</link>

		<dc:creator><![CDATA[iceadmin]]></dc:creator>
		<pubDate>Sat, 18 Jul 2015 04:42:18 +0000</pubDate>
		<guid isPermaLink="false">https://www.icegram.com/?p=2735#comment-6105</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/#comment-6054&quot;&gt;Sebastian&lt;/a&gt;.

Did you try with correct message ID? Open up Developer Console on the page you are trying to get this to work, and see what happens when you type in &quot;icegram&quot; in the console. Does it show &quot;undefined&quot; or &quot;Object&quot;? 

Additionally, try running that window.icegram.get_message_by_id().show() code from Developer Console. See if that shows any errors. 

That can point to the direction of the problem and help solve it.

If you find it difficult, contact us and we can take a look.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/#comment-6054">Sebastian</a>.</p>
<p>Did you try with correct message ID? Open up Developer Console on the page you are trying to get this to work, and see what happens when you type in &#8220;icegram&#8221; in the console. Does it show &#8220;undefined&#8221; or &#8220;Object&#8221;? </p>
<p>Additionally, try running that window.icegram.get_message_by_id().show() code from Developer Console. See if that shows any errors. </p>
<p>That can point to the direction of the problem and help solve it.</p>
<p>If you find it difficult, contact us and we can take a look.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sebastian		</title>
		<link>https://www.icegram.com/how-to-trigger-messages-onclick-of-button-or-link/#comment-6054</link>

		<dc:creator><![CDATA[Sebastian]]></dc:creator>
		<pubDate>Thu, 16 Jul 2015 20:40:35 +0000</pubDate>
		<guid isPermaLink="false">https://www.icegram.com/?p=2735#comment-6054</guid>

					<description><![CDATA[Not working at all. And anyway those instructions are not so clear.]]></description>
			<content:encoded><![CDATA[<p>Not working at all. And anyway those instructions are not so clear.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
