{"id":2261,"date":"2018-07-29T13:04:10","date_gmt":"2018-07-29T18:04:10","guid":{"rendered":"http:\/\/bluegalaxy.info\/codewalk\/?p=2261"},"modified":"2018-07-29T13:04:10","modified_gmt":"2018-07-29T18:04:10","slug":"wordpress-how-to-add-an-email-subscription-page","status":"publish","type":"post","link":"https:\/\/bluegalaxy.info\/codewalk\/2018\/07\/29\/wordpress-how-to-add-an-email-subscription-page\/","title":{"rendered":"WordPress: How to add an email subscription page"},"content":{"rendered":"<p>One thing that was missing from my blog was the ability for people to &#8220;Subscribe&#8221; to my blog to get email updates when I write new articles. In order to enable this, I searched for WP Plugins that would enable this with a shortcode so that I can make a special menu button for a &#8220;Subscribe&#8221; page. I tried three different plugins that either didn&#8217;t work, didn&#8217;t have a shortcode, or charged exorbitant amounts of money for a &#8220;Premium&#8221; version in order to get the desired functionality. The three plugins that I ended up deleting were Jetpack, WP Subscribe, and MailChimp.<\/p>\n<p>I finally tried the &#8220;Email Subscribers &amp; Newsletters&#8221; plugin and found that it does everything I needed it to do. I searched for &#8220;Subscribe&#8221; in the &#8220;Add New&#8221; Plugins page and then Installed the &#8220;Email Subscribers &amp; Newsletters&#8221; plugin,<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2262\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/esn.png\" alt=\"\" width=\"489\" height=\"354\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/esn.png 489w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/esn-300x217.png 300w\" sizes=\"auto, (max-width: 489px) 100vw, 489px\" \/><\/p>\n<p>Once it was installed, I clicked the Activate button. Then I created a new Page called &#8220;Subscribe&#8221; and added this shortcode:<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"no-highlight\">[ email-subscribers namefield=\"YES\" desc=\"Enter your name and email address to receive a notification whenever new articles are published.\" group=Public ]<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2267\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/add-new-page.png\" alt=\"\" width=\"735\" height=\"449\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/add-new-page.png 735w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/add-new-page-300x183.png 300w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/add-new-page-676x413.png 676w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/p>\n<p>Notes:\u00a0 1) Make sure that the yes in namefield=&#8221;YES&#8221; is in ALL CAPS, otherwise the plugin won&#8217;t recognize it as a valid option and won&#8217;t display the name field. 2) The text in desc=&#8221; &#8221; is customizable. You can make it say whatever you want it to.<\/p>\n<p>When the Subscribe page was added, there were three small problems I wanted to fix: 1) The &#8216;Subscribe&#8217; link showed up first in the list of links in my menu bar.\u00a0 2) The CSS styling of the default form wasn&#8217;t what I wanted. 3) There were no colons after the &#8220;Name&#8221; and &#8220;Email *&#8221; labels.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2270\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/default-subscribe.png\" alt=\"\" width=\"861\" height=\"417\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/default-subscribe.png 861w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/default-subscribe-300x145.png 300w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/default-subscribe-768x372.png 768w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/default-subscribe-676x327.png 676w\" sizes=\"auto, (max-width: 861px) 100vw, 861px\" \/><\/p>\n<p>To fix the order of the links in the Title Menu, I went to &#8220;All Pages&#8221; and then clicked the &#8220;Quick Edit&#8221; link under the Subscribe page. It has a box where you can change the order that this page appears in the list of links. I changed it to 1.<\/p>\n<p>Note: I also had to change the value of another link in the same way since it was already set to 1 also.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2271\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/change-menu-order.png\" alt=\"\" width=\"1019\" height=\"241\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/change-menu-order.png 1019w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/change-menu-order-300x71.png 300w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/change-menu-order-768x182.png 768w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/change-menu-order-676x160.png 676w\" sizes=\"auto, (max-width: 1019px) 100vw, 1019px\" \/><\/p>\n<p>Now the Subscribe button appears in the order I want it to instead of appearing first.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2273\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/menu-with-subscribe.png\" alt=\"\" width=\"611\" height=\"114\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/menu-with-subscribe.png 611w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/menu-with-subscribe-300x56.png 300w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/p>\n<p>To solve the problem of the formatting of the subscription form, I added these CSS changes in the box that shows up after clicking :<\/p>\n<p>Customize &#8211;&gt; Additional CSS<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"css\">\/*   ES Subscribe Styling *\/\r\n#es_txt_email {\r\n  background-color: #fefefe;\r\n  height: 40px;\r\n  width: 340px;\r\n  font-size: 22px;\r\n  border-radius: 4px;\r\n  border: 1px solid #aaa;\r\n  margin-bottom: 15px;\r\n}\r\n\r\n#es_txt_name {\r\n  background-color: #fefefe;\r\n  height: 40px;\r\n  width: 340px;\r\n  font-size: 22px;\r\n  border-radius: 4px;\r\n  border: 1px solid #aaa;\r\n  margin-bottom: 15px;\r\n}\r\n\r\n.es_lablebox {\r\n  margin-top: 25px;\r\n}\r\n\r\n.es_form_name { }\r\n.es_form_email { }\r\n\r\n<\/pre>\n<p>Then the final problem I wanted to solve was to edit the &#8220;Name&#8221; and &#8220;Email *&#8221; labels so that they have colons. For example:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2275\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/subscribe-form.png\" alt=\"\" width=\"835\" height=\"519\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/subscribe-form.png 835w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/subscribe-form-300x186.png 300w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/subscribe-form-768x477.png 768w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/subscribe-form-676x420.png 676w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/p>\n<p>This had to be edited in the es-register.php file located at:<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"no-highlight\">\\wp-content\\plugins\\email-subscribers\\classes<\/code><\/p>\n<p>For example:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2277\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/es-label-edit.png\" alt=\"\" width=\"1273\" height=\"392\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/es-label-edit.png 1273w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/es-label-edit-300x92.png 300w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/es-label-edit-768x236.png 768w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/es-label-edit-1024x315.png 1024w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2018\/07\/es-label-edit-676x208.png 676w\" sizes=\"auto, (max-width: 1273px) 100vw, 1273px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>For more information about this plugin, see:<br \/>\n<a href=\"https:\/\/wordpress.org\/plugins\/email-subscribers\/\">https:\/\/wordpress.org\/plugins\/email-subscribers\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>One thing that was missing from my blog was the ability for people to &#8220;Subscribe&#8221; to my blog to get email updates when I write new articles. In order to enable this, I searched for WP Plugins that would enable this with a shortcode so that I can make a special menu button for a &hellip; <a href=\"https:\/\/bluegalaxy.info\/codewalk\/2018\/07\/29\/wordpress-how-to-add-an-email-subscription-page\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WordPress: How to add an email subscription page<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[9],"class_list":["post-2261","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts\/2261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/comments?post=2261"}],"version-history":[{"count":10,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts\/2261\/revisions"}],"predecessor-version":[{"id":2278,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts\/2261\/revisions\/2278"}],"wp:attachment":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/media?parent=2261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/categories?post=2261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/tags?post=2261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}