<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WPWife &#187; modal login</title>
	<atom:link href="http://www.wpwife.com/category/modal-login/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpwife.com</link>
	<description>WPHelp: fix and optimise WP themes&#38;plugins</description>
	<lastBuildDate>Fri, 21 Nov 2025 12:00:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.38</generator>
	<item>
		<title>How to Create a WordPress Login Popup Modal (Step by Step)</title>
		<link>http://www.wpwife.com/wordpress-plugins/how-to-create-a-wordpress-login-popup-modal-step-by-step</link>
		<comments>http://www.wpwife.com/wordpress-plugins/how-to-create-a-wordpress-login-popup-modal-step-by-step#comments</comments>
		<pubDate>Mon, 28 May 2018 14:36:52 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[create a modal login]]></category>
		<category><![CDATA[how to create a modal login]]></category>
		<category><![CDATA[how to create a modal login in wordpress]]></category>
		<category><![CDATA[modal login]]></category>
		<category><![CDATA[modal login in wordpress]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=52843</guid>
		<description><![CDATA[
<p>Do you want to add a WordPress login popup modal on your site? A modal login popup allows your users to quickly login to your website without leaving the page that they are viewing. This improves user experience and engagement on your website. In this&#8230;&#160;<strong><a href="http://www.wpbeginner.com/plugins/how-to-create-a-wordpress-login-popup-modal-step-by-step/">Read More &#187;</a></strong></p>
<p>The post <a rel="nofollow" href="http://www.wpbeginner.com/plugins/how-to-create-a-wordpress-login-popup-modal-step-by-step/">How to Create a WordPress Login Popup Modal (Step by Step)</a> appeared first on <a rel="nofollow" href="http://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Do you want to add a WordPress login popup modal on your site? A modal login popup allows your users to quickly login to your website without leaving the page that they are viewing. This improves user experience and engagement on your website. In this article, we will show you how to easily create a WordPress login popup modal &#8211; step by step.</p>
<p><img title="how-to-create-a-modal-login-in-wordpress-featured" src="http://cdn.wpbeginner.com/wp-content/uploads/2018/05/how-to-create-a-modal-login-in-wordpress-featured.png" alt="How to Create a Modal Login in WordPress" width="550" height="340" class="alignnone size-full wp-image-52918" /></p>
<h4>Why Create a WordPress Login Popup Modal?</h4>
<p>If you run an <a href="http://www.wpbeginner.com/wp-tutorials/how-to-start-an-online-store/" title="How to Start an Online Store in 2018 (Step by Step)">online store</a>, <a href="http://www.wpbeginner.com/wp-tutorials/ultimate-guide-to-creating-a-wordpress-membership-site/" title="Ultimate Guide to Creating a WordPress Membership Site">membership website</a>, or <a href="http://www.wpbeginner.com/plugins/how-to-create-an-online-course-with-wordpress-using-learndash-review/" title="How to Create an Online Course with WordPress using LearnDash (Review)">sell online courses</a>, then you likely allow users to register and login to your website.</p>
<p>Normally, when users click on the login link, they are taken to the default WordPress login page or another <a href="http://www.wpbeginner.com/plugins/how-to-create-custom-login-page-for-wordpress/" title="How to Create a Custom Login Page for WordPress">custom login page</a> on your website. Once users are logged in,they are redirected again to another page.</p>
<p>A modal login popup enables you to display the login form without sending users to a different page. Once logged in, you can redirect users to any page you want. </p>
<p>A modal login popup is faster and improves user experience on your website. A faster and more polished user experience can boost your sales and conversions. </p>
<p>That being said, let&#8217;s take a look at how to easily create a modal login popup in WordPress. We will show you two methods to do that, and you can choose the one that best fits your needs. </p>
<h4>Method 1. Create a Modal Login Popup Using CSH Login</h4>
<p>This method is easier and recommended for most users.</p>
<p>First thing you need to do is install and activate the <a href="https://wordpress.org/plugins/csh-login/"  title="CSH Login" rel="nofollow">CSH Login</a> plugin. For more details, see our step by step guide on <a href="http://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="Step by Step Guide to Install a WordPress Plugin for Beginners">how to install a WordPress plugin</a>.</p>
<p>Upon activation, you need to go to <strong>Modal Login</strong> page in your WordPress admin area and select a type for modal login form. </p>
<p><img title="Select modal login type" src="http://cdn3.wpbeginner.com/wp-content/uploads/2018/05/select-modal-type.jpg" alt="Select modal login type" width="550" height="345" class="alignnone size-full wp-image-52997" /></p>
<p>After selecting the modal login box type, you can scroll down and manage login / logout redirects for the form. You can also allow users to generate their own passwords.</p>
<p><img title="Redirect login type" src="http://cdn.wpbeginner.com/wp-content/uploads/2018/05/redirect-login-type.jpg" alt="Redirect login type" width="550" height="252" class="alignnone size-full wp-image-52998" /></p>
<p>Next, you need to scroll down to the <strong>Styles</strong> section and select layout, display labels, background color, button color, link color, and more.</p>
<p><img title="Style your modal login form" src="http://cdn4.wpbeginner.com/wp-content/uploads/2018/05/styles-modal-login.jpg" alt="Style your modal login form" width="550" height="367" class="alignnone size-full wp-image-52999" /></p>
<p>Furthermore, you can add registration email, email subject, use Google reCaptcha, and more. This plugin also allows you to add social login like Facebook, Twitter, and Google.</p>
<p><img title="Add social login form" src="http://cdn.wpbeginner.com/wp-content/uploads/2018/05/social-login-modal-form.jpg" alt="Add social login form" width="550" height="241" class="alignnone size-full wp-image-53000" /></p>
<p>Make sure to save the changes and copy the shortcode located at the top of this page. You&#8217;ll need to create a new page in WordPress or edit an existing one to add the shortcode in the content editor.</p>
<p><img title="Copy shortcode for CSH login plugin" src="http://cdn.wpbeginner.com/wp-content/uploads/2018/05/copy-shortcode-modal-login.jpg" alt="Copy shortcode for CSH login plugin" width="550" height="263" class="alignnone size-full wp-image-53046" /></p>
<p>You can also add the modal login in your WordPress sidebar. Simply go to <strong>Appearance &raquo; Widgets</strong> to drag and drop the <strong>CSH login</strong> widget in sidebar of your site.</p>
<p><img title="drag-and-drop-csh-login-widget" src="http://cdn2.wpbeginner.com/wp-content/uploads/2018/05/drag-and-drop-csh-login-widget.png" alt="Drag and drop CSH login widget " width="550" height="289" class="alignnone size-full wp-image-53051" /></p>
<p>CSH modal login can also be added in your websites template files. Once you have added it on your site, simply visit your WordPress site to see the modal login link in action.</p>
<p><img title="Modal login popup form" src="http://cdn.wpbeginner.com/wp-content/uploads/2018/05/modal-login-popup-form.jpg" alt="Modal login popup form" width="550" height="430" class="alignnone size-full wp-image-53001" /></p>
<h4>Method 2. Create a Modal Login Popup with WPForms and OptinMonster</h4>
<p>For this method you will need the <a href="https://wpforms.com/" title="WPForms">WPForms</a> plugin and <a href="https://optinmonster.com/" title="OptinMonster">OptinMontser</a>. If you already have these two plugins, then this method is the better solution for you.</p>
<p>WPForms is the <a href="http://www.wpbeginner.com/plugins/5-best-contact-form-plugins-for-wordpress-compared/" title="5 Best Contact Form Plugins for WordPress Compared">best WordPress contact form</a> plugin. You will need at least their Pro plan to access the User registration addon. </p>
<p>OptinMonster is the best <a href="http://www.wpbeginner.com/beginners-guide/lead-generation-in-wordpress/" title="How to Do Lead Generation in WordPress Like a Pro">lead generation</a> software on the market. It helps you convert website visitors into subscribers and customers. You will need at least the Pro plan to access MonsterLinks feature used in this article. </p>
<p>Ready? Let&#8217;s get started. </p>
<h4>Using WPForms to Create a User Login Form</h4>
<p>First, you need to install and activate the <a href="https://wpforms.com/"  title="WPForms">WPForms</a> plugin. For more details, see our step by step guide on <a href="http://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="How to Install a WordPress Plugin – Step by Step for Beginners">how to install a WordPress plugin</a>.</p>
<p>Upon activation, you need to go to <strong>WPForms &raquo; Addons</strong> page to install and activate the <strong>User Registration Addon</strong>.</p>
<p><img title="WPForms addons page" src="http://cdn2.wpbeginner.com/wp-content/uploads/2018/05/wpforms-addons.png" alt="WPForms addons page" width="550" height="344" class="alignnone size-full wp-image-52886" /></p>
<p>After activating the addon, you need to go to <strong>WPForms &raquo; Add New</strong> page to create the user login form.</p>
<p><img title="Add new form" src="http://cdn2.wpbeginner.com/wp-content/uploads/2018/05/add-new-form.png" alt="Add new form" width="550" height="400" class="alignnone size-full wp-image-52887" /></p>
<p>Once the WPForms builder is launched, you need to choose the pre-built <strong>User Login Form</strong> template.</p>
<p><img title="Select user login form" src="http://cdn.wpbeginner.com/wp-content/uploads/2018/05/select-user-login-form.png" alt="Select user login form" width="550" height="416" class="alignnone size-full wp-image-52888" /></p>
<p>This login form template have the email and password fields that will work similar to the default WordPress login form. You can drag and drop any additional fields from the left side of the screen as needed.</p>
<p><img title="Login form template" src="http://cdn2.wpbeginner.com/wp-content/uploads/2018/05/login-form-template.png" alt="Login form template" width="550" height="311" class="alignnone size-full wp-image-52889" /></p>
<p>Next, click on the <strong>Password</strong> field in preview section, and it will show the field options on the left side. You can add the code given below in the description box of <strong>Password</strong> field to display options like forget password and user registration.</p>
<pre class="brush: xml; title: ; notranslate">
Can't remember your password? &lt;a href=&quot;{url_lost_password}&quot;&gt;Click here&lt;/a&gt;. Don't have an account? &lt;a href=&quot;{url_register}&quot;&gt;Register here&lt;/a&gt;.
</pre>
<p><img title="Add password options" src="http://cdn2.wpbeginner.com/wp-content/uploads/2018/05/add-password-options.png" alt="Add password options" width="550" height="259" class="alignnone size-full wp-image-52890" /></p>
<p>After that you need to click on the <strong>Save</strong> button and then click on the <strong>Embed</strong> button.</p>
<p><img title="Save and embed" src="http://cdn3.wpbeginner.com/wp-content/uploads/2018/05/save-and-embed.png" alt="Save and embed" width="550" height="282" class="alignnone size-full wp-image-52892" /></p>
<p>A popup window will open with the embed code. You need to copy this code and save it to use later.</p>
<p><img title="Copy embed code" src="http://cdn4.wpbeginner.com/wp-content/uploads/2018/05/copy-embed-code.png" alt="Copy embed code" width="550" height="432" class="alignnone size-full wp-image-52893" /></p>
<p>Your login form is ready. Now you can go ahead and create the modal popup.</p>
<h4>Using OptinMonster to Create a Modal Popup</h4>
<p>First you will need to install and activate the <a href="https://wordpress.org/plugins/optinmonster/"  title="OptinMonster" rel="nofollow">OptinMonster</a> plugin. For more details, see our step by step guide on <a href="http://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="Step by Step Guide to Install a WordPress Plugin for Beginners">how to install a WordPress plugin</a>.</p>
<p>Upon activation, you need to go to <strong>OptinMonster</strong> in WordPress admin area and click on <strong>Create New Campaign</strong> button.</p>
<p><img title="Create new campaign" src="http://cdn4.wpbeginner.com/wp-content/uploads/2018/05/create-new-campaign.png" alt="Create new campaign" width="550" height="299" class="alignnone size-full wp-image-52895" /></p>
<p>Your OptinMonster dashboard will open on a new web page.</p>
<p>Once inside, you need to select <strong>Lightbox Popup</strong> as campaign type, so you can add your login form in the popup.</p>
<p><img title="Select Campaign Type" src="http://cdn2.wpbeginner.com/wp-content/uploads/2018/05/select-campaign-type.png" alt="Select Campaign Type" width="550" height="414" class="alignnone size-full wp-image-52896" /></p>
<p>Next, you need to select the <strong>Canvas</strong> campaign template which is a blank template and allows you to add custom code and shortcodes.</p>
<p><img title="Select campaign template" src="http://cdn2.wpbeginner.com/wp-content/uploads/2018/05/select-campaign-template.png" alt="Select campaign template" width="550" height="374" class="alignnone size-full wp-image-52897" /></p>
<p>It will ask you to add a name to your lightbox and select the website where you want to load this popup.</p>
<p><img title="Add campaign name and site" src="http://cdn.wpbeginner.com/wp-content/uploads/2018/05/add-campaign-name-site.png" alt="Add campaign name and site" width="550" height="365" class="alignnone size-full wp-image-52898" /></p>
<p>Once you click on the <strong>Start Building</strong> button, you will be redirected to OptinMonster campaign setup page.</p>
<p>From here, you need to go to <strong>Optin</strong> tab and set width and height of the canvas, add login form embed code in <strong>Custom Canvas HTML</strong> field, manage display and sound effects for modal popup, and more.</p>
<p><strong>Note:</strong> The login form embed code should be the code that you copied after creating your login form in the previous step.</p>
<p><img title="Add login form embed code in modal popup" src="http://cdn3.wpbeginner.com/wp-content/uploads/2018/05/add-embed-code-modal-popup.png" alt="Add login form embed code in modal popup" width="550" height="330" class="alignnone size-full wp-image-52901" /></p>
<p>Since you are creating a modal login popup, you need to go to the setup tab and set &#8216;0&#8217; value for <strong>Cookie Duration</strong> and <strong>Success Cookie Duration</strong>. It will display the form to all visitors whenever they click on your link.</p>
<p><img title="Set cookie duration value" src="http://cdn2.wpbeginner.com/wp-content/uploads/2018/05/set-cookie-duration-value.png" alt="Set cookie duration value" width="550" height="230" class="alignnone size-full wp-image-52902" /></p>
<p>Next, you need to visit the <strong>Display Rules</strong> tab and expand <strong>MonsterLink</strong> to change the status to active.</p>
<p><img title="MonsterLink status active" src="http://cdn3.wpbeginner.com/wp-content/uploads/2018/05/monsterlink-status-active.png" alt="MonsterLink status active" width="550" height="315" class="alignnone size-full wp-image-52903" /></p>
<p>Make sure to click on the <strong>Save</strong> button at the top right corner and go to <strong>Publish</strong> section to make the status active.</p>
<p><img title="Save and publish campaign" src="http://cdn4.wpbeginner.com/wp-content/uploads/2018/05/save-publish-live-campaign.png" alt="Save and publish campaign" width="550" height="204" class="alignnone size-full wp-image-52904" /></p>
<p>Now you can add this modal login popup in your WordPress pages or posts.</p>
<h4>Adding Modal Login in WordPress</h4>
<p>You need to go back to <strong>OptinMonster</strong> in your WordPress admin area, and it will show you the list of campaigns. If you don&#8217;t see your recently created campaign for modal login, then simply click on the <strong>Refresh Campaigns</strong> button.</p>
<p><img title="Edit output settings" src="http://cdn4.wpbeginner.com/wp-content/uploads/2018/05/edit-popup-output-setting.png" alt="Edit output settings" width="550" height="229" class="alignnone size-full wp-image-52905" /></p>
<p>Next, you need to edit the campaign output settings to enable optin on your site and select who should see the modal login popup. Make sure to click on the <strong>Save Settings</strong> button.</p>
<p><img title="Shop campaign to visitors" src="http://cdn4.wpbeginner.com/wp-content/uploads/2018/05/show-optin-to-visitors.png" alt="Shop campaign to visitors" width="550" height="251" class="alignnone size-full wp-image-52906" /></p>
<p>After that you need to go back to the campaigns overview page and copy the slug that is visible below the live option of the campaign. This unique slug can be used in shortcodes and code to display the modal login in WordPress.</p>
<p><img title="Copy campaign slug" src="http://cdn3.wpbeginner.com/wp-content/uploads/2018/05/copy-campaign-slug.png" alt="Copy campaign slug" width="550" height="179" class="alignnone size-full wp-image-52910" /></p>
<p>Next, you can create a new WordPress page or edit an existing one and add this code with your unique campaign slug.</p>
<pre class="brush: php; title: ; notranslate">
&lt;a href=&quot;#&quot; class=&quot;manual-optin-trigger&quot; data-optin-slug=&quot;mw7pzo63ch6wpfzi&quot;&gt;Login / Register&lt;/a&gt;
</pre>
<p>You can also add the code above in your WordPress menus, sidebar, or any other area on your site.</p>
<p>Make sure to save the changes to WordPress page and visit your site to see the modal login in action.</p>
<p><img title="Modal login in WordPress" src="http://cdn3.wpbeginner.com/wp-content/uploads/2018/05/modal-login-form-in-wordpress.gif" alt="Modal login in WordPress" width="550" height="345" class="alignnone size-full wp-image-52914" /></p>
<p>We hope this article helped you learn how to create a modal login in WordPress. You may also want to see our complete list of <a href="http://www.wpbeginner.com/plugins/best-wordpress-login-page-plugins/" title="16 Best WordPress Login Page Plugins">best WordPress login page plugins</a> and design your own login page easily. </p>
<p>If you liked this article, then please subscribe to our <a href="http://youtube.com/wpbeginner?sub_confirmation=1" title="WPBeginner on YouTube"  rel="nofollow">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="http://twitter.com/wpbeginner" title="WPBeginner on Twitter"  rel="nofollow">Twitter</a> and <a href="https://www.facebook.com/wpbeginner" title="WPBeginner on Facebook"  rel="nofollow">Facebook</a>.</p>
<p>The post <a rel="nofollow" href="http://www.wpbeginner.com/plugins/how-to-create-a-wordpress-login-popup-modal-step-by-step/">How to Create a WordPress Login Popup Modal (Step by Step)</a> appeared first on <a rel="nofollow" href="http://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/wordpress-plugins/how-to-create-a-wordpress-login-popup-modal-step-by-step/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
	</channel>
</rss>
