MailPoet comes with a “subscribe in comments” option that allows visitors who comment on a post to subscribe to your list via a checkbox. But this box is unchecked by default. With this jQuery snippet, you can have the box auto-checked on page load.
WordPress is by far the most popular content management system in the world. So, naturally, I love it and have quite a bit to say about it. My WordPress posts may be slightly biased towards code hacks (as opposed to simpler configuration tweaks), but well, I'm a software guy... So, no apologies.
By default JetPack adds a nofollow attribute to all links in the related posts section. You can use this PHP code snippet to remove/disable this nofollow attribute.
By default, WordPress doesn’t come with suspicious login notifications and two factor authentication. We use plugins (or custom code) for these things. This piece of code notifies you when a user logs in to your site. Good for websites with few users.
The developers of the JetPack WordPress plugin decided to put a layer above the featured image thumbnails of “related posts”. This gives the images a faded look which you may not like. The CSS snippet shared here will help you disable this feature.
As of PHP 7.2 create_function() has been deprecated because of its usage of eval() – which in itself is a security hole. Even though applications that use create_function() may still work, you should replace it with an anonymous function instead.
AJAX has become THE way to build user friendly and dynamic websites. With AJAX, you can update the contents of a page without doing a full page reload. Most websites need this behavior. Read this post to learn how to implement AJAX on WordPress sites.