<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anup Kumar on Medium]]></title>
        <description><![CDATA[Stories by Anup Kumar on Medium]]></description>
        <link>https://medium.com/@ianup?source=rss-711b39bbd61f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DownNrKjG8gg40-DKAokdg.gif</url>
            <title>Stories by Anup Kumar on Medium</title>
            <link>https://medium.com/@ianup?source=rss-711b39bbd61f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 20:47:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ianup/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Develop an exit intent [lead magnet] WordPress plugin with vanilla JS —]]></title>
            <link>https://ianup.medium.com/develop-an-exit-intent-lead-magnet-wordpress-plugin-with-vanilla-js-3b088df2c6f7?source=rss-711b39bbd61f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b088df2c6f7</guid>
            <category><![CDATA[wordpress-plugin-services]]></category>
            <category><![CDATA[exit-intent]]></category>
            <category><![CDATA[wordpress-development]]></category>
            <category><![CDATA[vanillajs]]></category>
            <category><![CDATA[wordpress-web-development]]></category>
            <dc:creator><![CDATA[Anup Kumar]]></dc:creator>
            <pubDate>Sat, 25 Nov 2023 06:53:32 GMT</pubDate>
            <atom:updated>2023-11-25T07:13:37.396Z</atom:updated>
            <content:encoded><![CDATA[<p>PS: Best for WP plugin developers at the beginner level.</p><p>We all love getting offers the most when leaving the shop; it’s like, where are you going? Here is my final offer for you.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FjnQLd9h4JQmVzMZcEH%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FjnQLd9h4JQmVzMZcEH%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FjnQLd9h4JQmVzMZcEH%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/6705e7f3efd36d81d6317799e77f04a6/href">https://medium.com/media/6705e7f3efd36d81d6317799e77f04a6/href</a></iframe><p>We know it is exit intent. It gets fired when someone leaves the website. So let’s create a very lightweight, super scalable small plugin in the next 5 min.</p><p>You just need a WordPress setup as a prerequisite to try this:</p><h3><strong>Phase 1: Create a Blank Plugin and activate It</strong></h3><p><strong>Step 1: Create Blank Folder: </strong>Start by creating a folder for your plugin. For example, create a folder named `<strong>nexgi-wp-exit-intent`</strong>.</p><p><strong>Step 2. Create the Main Plugin File: </strong>Inside the plugin folder, create a PHP file; let’s call it `<strong>nexgi-wp-exit-intent.php`</strong>. This will be the main file that WordPress loads. Here we write about our plugin. Paste below code into that.</p><pre>&lt;?php<br>/**<br> * Plugin Name: NexGi WP Exit Intent<br> * Description: A plugin to capture exit intent and capture leads.<br> * Version: 1.0<br> * Author: Anup Kumar<br> */<br><br>// Your plugin code goes here.</pre><h3><strong>2 step </strong>📋 <strong>checklist to verify progress:</strong></h3><ol><li>It should look like the below image after these two steps:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nn5RfAfn2xh44GEhi1BJWQ.png" /></figure><p>2. Log in to your wp-admin and see the plugins list. The plugin should be there as the image below. Now Activate this plugin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7xCPgASxsPjQqzWmQMpfiA.png" /></figure><h3>Phase 2. Let’s add exit-intent functionality</h3><p>Add the necessary JavaScript to enable your exit-intent functionality by following the steps and making sure you haven’t removed the default WordPress jQuery from the WordPress theme.</p><p>Step 1. Add Exit Intent JavaScript in js/nexgi-wp-exit-intent.js</p><pre>jQuery(document).ready(function ($) {<br>    var exitIntentTriggered = false;<br><br>    $(document).mouseleave(function (e) {<br>        // controlling exist intent should fire only once<br>        if (!exitIntentTriggered) {<br>            // Your code to display the exit-intent popup goes here.<br>            exitIntentTriggered = true;<br>            Alert(&quot;Display your HTML form here&quot;);<br>        }<br>    });<br><br>    // Additional code for your exit-intent functionality.<br>});</pre><p>Step 2. Enqueue (attach) the above file to the main plugin file `<strong>nexgi-wp-exit-intent.php`</strong>, We are adding this in the footer so it doesn’t block the loading.</p><pre><br>function nexgi_enqueue_scripts() {<br>    // adding js<br>    wp_enqueue_script(<br>        &#39;nexgi-exit-intent&#39;, // id of javscript <br>        plugin_dir_url(https://medium.com/__FILE__) . &#39;js/nexgi-wp-exit-intent.js&#39;, // path of js<br>        array(&#39;jquery&#39;), // dependency injection<br>        &#39;1.0&#39;, // assets versioning<br>        true // true to add into footer, false to add in header<br>    );<br>}<br><br>add_action(&#39;wp_enqueue_scripts&#39;, &#39;nexgi_enqueue_scripts&#39;);</pre><p>Step 3. Let’s create the HTML of the popup in <strong>`templates/exit-intent-popup.php`, </strong>then add the code below, and for the image, create `img` folder and paste your <strong>popup-option-one.png</strong> file in that.</p><pre>&lt;div class=&quot;nexgi-exit-intent-popup js-nexgi-exit-intent-popup&quot;&gt;<br>    &lt;!-- Your HTML and form code starts here. --&gt;<br>    &lt;div class=&quot;popup-content&quot;&gt;<br>        &lt;span class=&quot;close-btn&quot;&gt;&amp;times;&lt;/span&gt;<br>        &lt;img src=&quot;&lt;?php echo plugin_dir_url(https://medium.com/__DIR__)  ?&gt;img/popup-option-one.png&quot; alt=&quot;Special Offer&quot;&gt;<br>    &lt;/div&gt;<br>    &lt;!-- Your HTML and form code ends here. --&gt;<br>&lt;/div&gt;</pre><p>Step 4. Add the above template file into the theme footer using the wp_footer action by adding the following code into the main plugin file.</p><pre>// adding popup html<br>function nexgi_exit_intent_popup_html($atts) {<br>    include(plugin_dir_path(__FILE__) . &#39;templates/exit-intent-popup.php&#39;);<br>}<br><br>add_action(&#39;wp_footer&#39;, &#39;nexgi_exit_intent_popup_html&#39;);</pre><p>Step 5. Let’s create the CSS of the popup in <strong>`css/nexgi-wp-exit-intent.css`, then add the code below.</strong></p><pre>.nexgi-exit-intent-popup {<br>    display: flex; /* we will hide this by default and on event trigger, will make it flex */<br>    position: fixed;<br>    top: 0;<br>    left: 0;<br>    width: 100%;<br>    height: 100%;<br>    background-color: rgba(0, 0, 0, 0.5);<br>    justify-content: center;<br>    align-items: center;<br>}<br><br>.popup-content {<br>    text-align: center;<br>}<br><br>.close-btn {<br>    position: absolute;<br>    top: 50px;<br>    right: 50px;<br>    font-size: 70px;<br>    cursor: pointer;<br>    color: white;<br>}<br><br>img {<br>    height: 500px;<br>}</pre><p>Step 6. Go to the main plugin file `<strong>nexgi-wp-exit-intent.php` </strong>in the <strong>`nexgi_enqueue_scripts` </strong>function and update that function by enqueue (attaching) CSS also.</p><pre>function nexgi_enqueue_scripts() {<br>    // adding js<br>    wp_enqueue_script(<br>        &#39;nexgi-exit-intent&#39;, // id of javscript <br>        plugin_dir_url(https://medium.com/__FILE__) . &#39;js/nexgi-wp-exit-intent.js&#39;, // path of js<br>        array(&#39;jquery&#39;), // dependency injection<br>        &#39;1.0&#39;, // assets versioning<br>        true // true to add into footer, false to add in header<br>    );<br><br>    // adding css<br>    wp_enqueue_style(&#39;nexgi-exit-intent-style&#39;, // id of stylesheet<br>        plugin_dir_url(https://medium.com/__FILE__) . &#39;css/nexgi-wp-exit-intent.css&#39;, // url of css file<br>        array(), // depedency<br>        &#39;1.0&#39;, // version<br>        &#39;all&#39; // media, print etc<br>    );<br>}<br><br>add_action(&#39;wp_enqueue_scripts&#39;, &#39;nexgi_enqueue_scripts&#39;);</pre><h3>2 step 📋 checklist to verify progress:</h3><ol><li>Verify your CSS, JS and HTML by viewing the source and searching with a keyboard “next-exit-intent-” and you will get the below output. If you are getting means, everything is at right place and our code are attached successfully through this plugin.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9X1KBo4-j_Qh58htFX51Aw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jiqi19g_GsY8qKfhW9yrDw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4p6B8bfrux7EnSfQfzfYXA.png" /></figure><p>2. Now open your website home page. If you are getting this, you are 101% right. Now, design it the way you want. and move to phase 3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dDlbOzB72hTDTcTZGZVxtA.png" /></figure><h3>Phase 3. Giving final shape.</h3><p>So there are two things missing:</p><ol><li>By default, it should be hidden.</li><li>When an exit intent event happens, it should be visible.</li><li>By clicking on ‘X’ close, it should be again disappear.</li></ol><p>So let’s do it:</p><h4><strong>For functionality 1.</strong> By default, it should be a hidden change in CSS:</h4><pre>/* how it is */<br>.nexgi-exit-intent-popup {<br>    display: flex; /* make it flex to none */<br>}<br><br>/* how it should be */<br>.nexgi-exit-intent-popup {<br>    display: none; /* like this */<br>}</pre><p>Now go to the home page and refresh it. You will get, a popup that has disappeared. 🎉 You have successfully implemented functionality 1. Let’s move on to the next functionality.</p><h4><strong>For functionality 2. </strong>When an exit intent event happens, it should be visible.</h4><p>Replace the js file with the below code. I’ve just added 2 lines</p><pre>jQuery(document).ready(function ($) {<br>    var exitIntentTriggered = false;<br><br>    $(document).mouseleave(function (e) {<br>        // controlling exist intent should fire only once<br>        if (!exitIntentTriggered) {<br>            // Your code to display the exit-intent popup goes here.<br>            exitIntentTriggered = true;<br>            // functionality 2<br>            $(&#39;.js-nexgi-exit-intent-popup&#39;).css(&#39;display&#39;,&#39;flex&#39;);<br>        }<br>    });<br>});</pre><p>Now go to the home page, make a hard reload (ctrl + f5), and try exit intent. If you are getting a popup. 🎉 You have successfully implemented functionality 2. Let’s move on to the next functionality.</p><h4>For functionality 3. Close button functionality.</h4><p>Replace the below js for functionality 3</p><pre>jQuery(document).ready(function ($) {<br>    var exitIntentTriggered = false;<br><br>    $(document).mouseleave(function (e) {<br>        // controlling exist intent should fire only once<br>        if (!exitIntentTriggered) {<br>            // Your code to display the exit-intent popup goes here.<br>            exitIntentTriggered = true;<br>            // functionality 2<br>            $(&#39;.js-nexgi-exit-intent-popup&#39;).css(&#39;display&#39;,&#39;flex&#39;);<br>        }<br>    });<br><br>    // functionality 3 Close the popup when the close button is clicked<br>    $(&quot;.close-btn&quot;).on(&#39;click&#39;, function () {<br>        $(&#39;.js-nexgi-exit-intent-popup&#39;).css(&#39;display&#39;,&#39;none&#39;);<br>    });<br>});</pre><p>Now go on the browser and enjoy your small exit intent popup. You can also add contact forms like <a href="https://wordpress.org/plugins/contact-form-7/">Contact Form 7</a>, <a href="https://wpforms.com/">WP forms</a> or any other form in this popup. If you want that tutorial, write it down in a comment. I will surely write here.</p><p>Follow me on twitter for more — <a href="https://twitter.com/ianupatnexgi">https://twitter.com/ianupatnexgi</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b088df2c6f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How cheap website cost us more than we save?]]></title>
            <link>https://medium.com/nexgen-innovators/how-cheap-website-cost-us-more-than-we-save-41abdf5c8b49?source=rss-711b39bbd61f------2</link>
            <guid isPermaLink="false">https://medium.com/p/41abdf5c8b49</guid>
            <category><![CDATA[investment]]></category>
            <category><![CDATA[business-growth]]></category>
            <category><![CDATA[website-design]]></category>
            <category><![CDATA[ecommerce-web-development]]></category>
            <category><![CDATA[website]]></category>
            <dc:creator><![CDATA[Anup Kumar]]></dc:creator>
            <pubDate>Sun, 07 Apr 2019 00:31:02 GMT</pubDate>
            <atom:updated>2019-04-07T00:31:02.311Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>The cheap website doesn’t cost us directly — It cost indirectly</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*X5NtOvIsZDl1WVSmoiB02A.png" /></figure><p>Yes, when we (average 90% 👪) needs a website we start finding a cheap website developer and cheap website designing. Cheap developers are also available to make the website in INR 5999/- to very cheap website developer up to INR 2999/-.</p><blockquote>Note: Please don’t take personally as I’m using “we”. “we” representing a common tendency of people mindset.</blockquote><p>As the website is a tradition nowadays — also become a social responsibility to have a website if We are going to start any kind of business.</p><p>We want to fulfil this social responsibility at the lowest price and We choose this range.</p><p>But it 😐 cost us indirectly!</p><blockquote>This article especially I wrote to let the people know the importance of why we shouldn’t go with cheap website developers or company, how eventually that cheap website become more costly to us.</blockquote><p>So let’s start!</p><ol><li><strong>Our website is not just website it’s us, over the internet world</strong>. The online version of ourselves! and It’s quite obvious we can’t get quality on cheap websites. Means by choosing cheap website developers we have created a virtual cheap image of ours over the internet.</li><li><strong>People have less time and internet in hand to search</strong>. As mobile &amp; internet become common or easy to access, even in rural areas, users moved to search everything over the internet, just before they physically met us.</li><li><strong>Bad image bad result, good/authentic image good result or better conversion</strong>. It’s practical! e.g when We see the school for our kids, We take the decision by how much We convinced with school website or looking authentic for us.</li></ol><blockquote>So question arises❓ How cheap website cost us more than we save ❓<br><strong>The cheap website doesn’t cost us directly — It cost indirectly by:</strong></blockquote><ol><li><strong>Unable to convert the website visitor into valuable customers.</strong> If We see in point 3, just written above — our website should be appealing and should look authentic. if We invested some amount in the website and at the time of conversion user went away that’s ultimate loose of our investment into the cheap website. Even If we were able to convert them — he could return with reference.</li><li><strong>Lost of marketing cost.</strong> Somehow we are investing to market our website, either verbally, through banner, posters, running an online campaign, etc. But when such marketing technique works and our visitors go to our website, he/she doesn’t feel authentic or quality in our work. In reality, It doesn’t matter at what level We are good at providing our service but here We failed to represent it.</li><li><strong>Lost believe in IT Tools &amp; we put our business in danger.</strong> When our visitors don’t convert into customers. We get frustrated, stop investing money and time. Finally, We lost to believe in the website or generating online leads through the website. It would be the reason of business shut down in the next 10 years. I listen to many customer websites doesn’t return, but that’s a myth, and believe me, if we are not adopting IT tools we will die in the next 10 years.</li></ol><p><strong>Common Problem with cheap websites:</strong></p><ol><li>Loads slow.</li><li>Less secure.</li><li>Look wise not so authentic.</li><li>Unable to handle much traffic.</li><li>Unable to represent our work theme, moto.</li></ol><h4>Load time is a prominent factor nowadays, why?</h4><p>When we go back around 2000–2010. 80% People used to have websites to show off not to earn from it. As after 2011 internet become started common among people after 2010 and it has boost after 2015.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/0*OuAMjl9vDnh0ukp_.png" /></figure><blockquote>As per current trends 🐵 users are increasing, 🌐 website also increasing — but patience to wait of website loading time is decreasing for our end users.</blockquote><p>What above quote means? and how cheap website going to hurt our with this perspective.</p><p><strong>To get speed in our website:</strong><br>1. Code of our website should be optimised.<br>2. Images should be optimised.<br>3. The database should be structured properly.<br>4. Properly lazy loaded the content of our website as per priority. <a href="https://grofers.com/">https://grofers.com/</a> is the best example of lazy loading.</p><p><strong>The real example of how our sales can drop just because of 3-sec delay</strong></p><p>suppose we are running an eCommerce website and selling a product. Users search over google and we are coming at first page after investing in SEO or running PPC. The user clicked on our website and try to open our website if it slows in loading. the user simply presses the back button and open the next link.</p><p>😑 Oops! It costed us again without profit.</p><p>The same case in all either we are promoting our services, products, courses anything it applies on all.</p><p>Instead of searching cheap website developer we just need to change cheap to <a href="https://www.nexgi.com/best-website-designing-company-in-delhi/">best website developers</a>.</p><h4>Dear readers</h4><p>That’s opinion is based on my 5 years of experience. I love to get your opinion or your agreement or disagreement points with my concept. Please leave your comment. I love to answer and learn from it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41abdf5c8b49" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nexgen-innovators/how-cheap-website-cost-us-more-than-we-save-41abdf5c8b49">How cheap website cost us more than we save?</a> was originally published in <a href="https://medium.com/nexgen-innovators">NexGen Innovators</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>