The phrase “looks matters” is relevant when it comes to a website. Getting a visually appealing website helps your business considerably. Website design helps attract customers if it has a unique and eye-catching design. Imagine,...
Do you want to add a simple user password generator in WordPress?
Many WordPress users end up using weaker passwords for the sake of convenience. These passwords can be easily cracked by hackers, which makes your WordPress website vulnerable.
In this article, we’ll show you how to easily add a simple user password generator in WordPress. This would allow you or other registered users on your website to generate a strong password.
Why Use a Stronger Password Generator in WordPress?
By default, WordPress allows you to choose a password for your user account, but it doesn’t require that the password be secure.
The built-in password generator appears during WordPress installation, on the user registration page, and on the user profile page.
By clicking on the Generate Password button, users can generate a new strong password.
Similarly, when changing a password by editing their user profile, users can click on the ‘Set New Password’ button to generate unlimited combinations of unique strong passwords.
However, you’ll notice that it allows you to skip the password strength check by checking the ‘Confirm use of weak password’ option.
Similarly, any users registering on your website can also escape the strong password requirement by checking this option on the user registration page.
If you run a membership site or online store where many users have accounts, then this can seriously affect the security of your WordPress site.
That being said, let’s take a look at how to easily enforce secure passwords and require users to use the strong password generator instead.
Method 1. Enforce Strong Password Generator in WordPress
Upon activation, you need to visit Password Policies page in WordPress admin area and click on the Enable Password Policies check box.
After that, you can set a site-wide password policy for all users. You can choose minimum password strength, enforce special characters and number usage, expire passwords after a period of time, and more.
Below that you can set additional advanced options for password security.
For instance, you can automatically reset passwords for inactive users, prevent users from reusing old passwords, or disallow users from resetting passwords on their own.
The plugin also allows you to limit login attempts to prevent brute force attacks. You can choose the number of login attempts a user can make, after which their account will be locked and login will be disabled for 24 hours.
You can also set a lock duration after which the accounts will be automatically unlocked. Alternatively, you can choose to manually unlock accounts by an administrator only.
Set Password Policies Depending on User Roles
The plugin also allows you to set different password policies based on user roles.
For instance, you can set different password requirements and security settings for authors, subscribers, customers, or members on your membership website.
Seeing the Password Generator in Action
The plugin will now automatically display a strong password generator on registration, profile, and password change screens in WordPress.
It will also prevent users from setting weaker passwords or bypassing your password policy.
Method 2. Strong Passwords in Custom User Registration and Login Forms
The password policy method above works well for default WordPress user registration and password reset forms.
However, if you are using a custom user registration and password reset form, then users may still find ways around your stronger password requirements.
One easy way to enforce strong passwords is by using WPForms. It is the best WordPress form builder plugin and allows you to easily create any kind of form including custom user registration and login page forms.
Note: You’ll need at least the Pro plan to access User Registration addon.
Upon activation, you need to visit the WPForms » Settings page to enter your license key. You can find this information under your account on the WPForms website.
After that, you need to visit the WPForms » Addons page and click on the Install Addon button under the ‘User Registration Addon’.
You are now ready to create your custom user registration and login forms.
Simply head over to WPForms » Add New page. First, you need to provide a title for your form and then choose the user registration form template.
This will load the form builder where you can edit form fields.
Simply click on the password field to edit and turn on ‘Enable Password Strength’ switch. Below that you can choose minimum password strength and set it to ‘Strong’.
You can now save your form and exit the form builder.
WPForms makes it super easy to add your forms anywhere on your website. Simply edit the post or page where you want to display your custom user registration form, and add the WPForms block to your content area.
After that, you need to select your custom user registration form under the block settings.
WPForms will then load a live preview of your form inside the editor.
You can now save and publish your post / page and preview your custom user registration form.
You’ll notice that as users fill in the password field they will be asked to use a stronger password. The form will not be submitted with a weaker password.
Do you want to learn how to add tags, attributes, and categories to your WooCommerce products?
By optimizing your WooCommerce product listings, you can help your visitors find what they’re looking for and get more traffic from search engines and social media.
In this article, we’ll show you how to add product tags, attributes, categories, and more in WooCommerce, step by step.
Why Add Product Tags, Attributes and Categories to WooCommerce Products?
Adding the right product tags, attributes, and categories in WooCommerce will help you to get more traffic to your online store, make more sales, and improve the overall user experience for your customers.
Firstly, using categories, tags, and attributes in WooCommerce will make your store more organized, helping visitors find the products they’re looking for much faster.
They can also help to improve your store’s search engine optimization. That’s because using descriptive tags, attributes, and categories will help your products to appear in more searches, growing your traffic and sales.
What’s the Difference Between Categories, Tags, and Attributes in WooCommerce?
Many beginners get confused about the differences between categories, tags, and attributes.
Categories are meant for a broad grouping of your products, like men’s, women’s, or children’s clothing.
Tags are more like keywords for a specific product. A women’s shirt could have tags like summer, discount, casual, soft, and more.
Attributes are for specific characteristics of a product. For example, you can give important information about the product’s weight, material, color, and more.
This is common in clothing stores, where customers can filter products by a specific size, color, or fabric.
Here’s an example of a WooCommerce product with the category ‘Accessorites’ and an attribute for the color red listed on the product page.
Categories and tags are used for your WordPress blog posts as well. You can read more about the difference in our guide to categories vs tags.
That being said, let’s show you how to add product categories, tags, and attributes to your WooCommerce products.
Adding Product Categories, Tags, and Attributes to WooCommerce Products
WooCommerce has built in settings to add categories, tags, and attributes right out of the box.
To add categories, navigate to Products » Categories in your WordPress admin panel.
Then, you can give your category a name, add a slug, and choose whether or not it has a parent category.
Next, you can optionally give your category a description and choose the ‘Display type’ from the ‘Default’ drop down.
This controls what the category landing page will look like. Here you can choose to display your ‘Default’ theme options, ‘Products’, ‘Subcategories’, or ‘Both’.
The Default option will depend on the theme you’re using. ‘Products’ would display all the products in that category and any subcategories on the main category page (for example, wpbeginner.com/shop/jackets). ‘Subcategories’ would simply display the subcategories, and the visitor would have to click on one of the subcategories to view those products.
If you want to add a category thumbnail, then click the ‘Upload/Add image’ button.
Make sure you click the ‘Add new category’ button to save your changes.
To add more categories or subcategories, simply follow the same steps as above.
Now you can assign a product to a category by going to your product page, then checking the category box in the ‘Product categories’ section.
You can also click the ‘Add new category’ link.
This brings up a section where you can quickly create new categories on the fly.
Once you’re finished assigning categories, make sure to click the ‘Publish’ or ‘Update’ button.
Adding and Editing Product Tags
Your product tags are similar to tags in your blog posts. You can use product tags to make it easier for your visitors to find the exact products they’re looking for.
To add new tags, simply go to Products » Tags and enter the name of your tag, the slug, the description, and then click the ‘Add new tag’ button.
To add more tags, simply follow the same steps as above.
You can also add individual tags to your product pages. Simply open up the product page you want to edit, then enter your tags into the ‘Product tags’ box and click the ‘Add’ button.
Once you’re finished, make sure to click ‘Publish’ or ‘Update’ to save your changes.
Adding and Editing Product Attributes
Finally, you have product attributes. These help group products together and offer users a way to filter your products.
To add product attributes, you need to go to Products » Attributes and then give your attribute a name and slug.
You can also enable archives by checking the ‘Enable Archives’ box. This gives you the ability to display all items that share that attribute on a page.
After that, you need to choose the ‘Default sort order’. This is the order your products will appear on the shop page for that attribute.
We’ll choose the ‘Custom ordering’ option to give more control, but you can also order by name, and term ID.
Then, click the ‘Add attribute’ button to add it to the attribute table.
Now, you need to click the ‘Configure terms’ link to add terms to the attribute.
For example, if you created an attribute called ‘Color’, then you can add the individual colors as terms.
This brings up a screen similar to the main attribute screen, where you need to enter the name, slug, and optional description.
Then, click the ‘Add New Color’ button to save your attribute terms. You can add as many attribute terms as you want by repeating the process.
Once you’ve done that, you can add your attributes to individual products.
Simply open up the product page you want to edit, then click the ‘Attributes’ option in the ‘Product data’ section under the text editor.
Next, select your attribute in the ‘Custom product attribute’ drop down.
Then, click ‘Add’.
This adds the attribute to your product.
Now, you can select your attribute terms from the ‘Value(s)’ box.
Once you’re done adding your attributes, click the ‘Save attributes’ button.
After that, make sure to click ‘Publish’ or ‘Update’ to save your product.
Optimizing Your Product Listings for WooCommerce SEO
Once you’re done creating tags, attributes, and categories, you can improve your product pages even more with the help of an SEO plugin.
It’s very easy to use and lets you optimize your website for SEO without any technical skills. This means more traffic from the search engines and social media, and more eyes on your products.
Note: There is a free version of the plugin, but we’ll be using the Pro version since it includes the WooCommerce SEO features we need.
After that, you can optimize your product titles by opening the page for a product and scrolling down to the ‘AIOSEO Settings’ box below the product editor.
Here you can change the product’s SEO title and description. You can use the smart tags to automatically generate descriptions based on your product details, or enter a custom title and description instead.
Make sure that you use your main product keyword in both the title and meta description fields.
After that, click on the ‘Social’ tab to optimize how your product will display across social media.
You have complete control over the product image you want to use, which will help you get more engagement from your followers.
Next, click the ‘Schema’ tab. Schema markup lets the search engines better display your content in the search results.
If you’ve seen product listings with prices, star ratings, and more, then you’ve seen product schema in action.
All in One SEO will automatically choose the right schema type for your products and fill in the pricing, availability, and more.
You can also add additional schema markup, including the brand, identifier type, and identifier fields. Identifiers can be any unique ID such as ISBNs, GTIN codes, or UUIDs.
Once you’re done customizing your product listing for SEO, make sure to click the ‘Update’ button to save your changes.
For more details, see our ultimate WooCommerce SEO guide for ranking higher in Google.
We hope this article helped you learn how to add product tags, attributes, and categories to WooCommerce. You may also want to see our expert picks of the best WooCommerce plugins for your store and our guide on how to create an email newsletter the right way.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Do you need to add a scrolling news ticker to your WordPress site?
You’ll often see news tickers used by television networks to highlight breaking news. You can add a news ticker to your website to highlight special deals or popular posts.
In this article, we’ll show you how to add a scrolling news ticker in WordPress.
What Is a Scrolling News Ticker?
A news ticker scrolls a single line of information continuously across the screen. They typically display current news items, sporting results, live financial and currency information, and weather information.
They are a great way to display small snippets of information that are always changing. You’ll find that a news ticker can display quite a lot of information in a limited space on your WordPress blog.
For example, you could use a news ticker to display your best performing posts, items in your store that are on sale, or any other information that you want to highlight.
Upon activation, the plugin adds a News Ticker menu item to your WordPress admin area.
You need to navigate to News Tickers » Add New to add a news ticker. On the next screen, you will have the ability to give this particular news ticker a name, ticker text, and link.
For each ticker, you can add as many ticks as you like. These are the separate pieces of information you want to display, and each can have its own link.
If you want to add another ticker item, then press the plus + button at the top right of the current tick. A new ticker item will be added.
Once you are done adding ticker items, you should click on the Ticker Mode tab. There are three different ticker modes available: scroll, rotate, and list.
Scroll mode is the default setting because it is the most commonly used in television networks. Rotate is another good option if you want to show one ticker at a time.
The settings on the rest of the page allow you to adjust the behavior of the news ticker. You can configure scroll speed and direction, override the default ticker dimensions, and choose the spacing between each tick.
The plugin generates a shortcode as well as a PHP function for each news ticker you create. You can either add the shortcode to a post, page, sidebar widget, or you can directly insert the PHP function into your theme files.
Once you insert the ticker shortcode or PHP function, then you can visit your website to see it in action.
Do you need to add custom styling to the first and last items of your WordPress navigation menu?
You could simply add a custom CSS class to the first and last menu items, but if the menu is rearranged, then those items will no longer be first and last.
In this article, we’ll show you how to add a .first and .last class that will style the first and last menu items even if the menu items are reordered.
Why Style the First and Last Navigation Items Differently?
In a past custom design project, we needed to add some custom styling to the navigation menu items of a WordPress website. This design in particular required different styling for the first menu item and the last menu item.
Now we could easily edit the menu and add a custom CSS class to the first and last menu item. But because we were delivering the project to a client, our solution had to work even if they rearranged the order of the menus.
In this tutorial, we’ll show you two ways to style the first and last items of your navigation menu. You can choose your preferred method from the list below:
This creates .first and .last CSS classes for your first and last navigation menu items respectively. You can use those classes to style the menu items.
For this tutorial, we’ll add the following basic CSS formatting to our theme’s style.css stylesheet to simply bold the first and last menu items:
.first a {font-weight: bold;}
.last a {font-weight: bold;}
Here you can see screenshots before and after we added the code to our demo site.
Method 2: Styling First and Last Items Using CSS Selectors
A second way to style the first and last menu items differently is to use CSS selectors. This method is simpler, but it may not work with some older browsers, such as Internet Explorer.
Note that you will need to replace ‘yourmenuid’ with the actual ID of the navigation menu. The selectors ‘first-child’ and ‘last-child’ select an element if it is the first and last child of its parent, which is the navigation menu.
For example, we used this code to bold the first and last navigation menu items on our demo site:
ul#primary-menu-list > li:first-child a {
font-weight: bold;
}
ul#primary-menu-list > li:last-child a {
font-weight: bold;
}
We hope this tutorial helped you learn how to add the .first and .last class to WordPress navigation menus.
The trickiest part in writing an essay is how to avoid plagiarism. You may be passing somebody else’s work as your own in your paper and not even know about it. However, such carelessly done...
Many businesses don’t consider branding to boost their online presence, and ultimately, e-commerce sales. Your logo can be a significant factor in creating an online presence, as it represents the face of your company and...
Do you want to resend welcome emails to your WordPress users?
A welcome email helps build trust with new users and ensures that people remember your website and business.
However, your welcome emails can sometimes end up in the spam folder, or users don’t receive the messages. That’s why it’s important to resend welcome emails.
In this article, we will show you how to resend new user welcome emails in WordPress.
Why Resend Welcome Emails to New Users in WordPress?
Creating welcome emails is a great way to customize the emails that new users receive when they register on your website. This helps build your brand and makes your site memorable for customers, members, and subscribers.
However, the welcome emails that you send might not make it to your users’ inboxes. Plus, email providers like Gmail can also flag your emails as spam.
One of the reasons for this issue is that WordPress hosting services don’t configure the mail function properly. As a result, your welcome emails fail to reach your users or land in the spam folder.
To overcome this issue, you can use an SMTP (Simple Mail Transfer Protocol) service. It allows you to use an SMTP server to send WordPress emails and ensure that they reach your users.
An SMTP service also allows you to log any emails that don’t get delivered so that you can easily resend them.
That said, let’s look at how you can log welcome emails that didn’t reach new users in WordPress.
With WP Mail SMTP, you can track email deliverability in WordPress. The plugin keeps a record of every email sent from your website and lets you resend emails that haven’t been delivered.
Upon activation, you can head over to WP Mail SMTP » Settings from your WordPress dashboard and then enter the license key.
You can find the key in your WP Mail SMTP account area.
After entering the license key, go ahead and click the ‘Verify Key’ button.
Next, you can scroll down to the Mailer section and choose how you would like to send your WordPress emails.
All you have to do is select your preferred mailer. The PHP mail will be selected by default, but we don’t recommend using this method as it’s unreliable.
After that, you need to go to the Email Log tab in the WP Mail SMTP settings and check the box for the ‘Enable Log’ option.
This way, you will be able to track email deliverability in WordPress.
When you enable the option, you will see additional email tracking settings under the Email Log tab.
Go ahead and check the boxes for Log Email Content, Save Attachments, Open Email Tracking, and Click Link Tracking so that you will get more data about email deliverability.
Next, you can select the time period for keeping the email logs.
Simply choose an option from the dropdown menu for ‘Log Retention Period’ and then click the ‘Save Settings’ button.
How to Resend New User Welcome Emails
After setting up email logs, you can now see which welcome emails didn’t reach your users and which ones need to be resent.
To start, simply navigate to WP Mail SMTP » Email Log from your WordPress admin area.
The plugin will show all your emails in this section. You can see the email subject, who it’s been sent to, the source, and whether users opened and clicked the email.
If you see a red dot for any email, it means it wasn’t delivered. On the other hand, a green dot shows the email has reached the user’s inbox.
To resend a welcome email that didn’t get delivered, go ahead and click the ‘View Log’ option.
Now, you will see logs for the individual email.
After that, navigate to the ‘Actions’ tab and click the ‘Resend’ button.
A popup window will now appear.
Simply enter the recipient’s email address and click the ‘Yes’ button to resend the email.
Next, if you see multiple emails that failed to deliver, you can use the bulk resend feature from the email log screen.
Go ahead and check the box next to the emails you want to resend. After that, select the ‘Resend’ option from the Bulk Actions dropdown menu.
When a popup window appears, you can click the ‘Yes’ button to resend multiple emails.
That’s it! WP Mail SMTP will resend welcome emails and any other email that fails to reach your new users.
Do you want to limit the number of posts in your WordPress RSS feed?
By default, WordPress displays the ten most recent posts in the main RSS feed. You can change that to include more or fewer articles in the feed.
In this tutorial, we’ll show you how to easily limit the number of posts in the WordPress RSS feed. We’ll also show you how to easily create an RSS sitemap for search engines as well.
Video Tutorial
If you don’t like the video or need more instructions, then continue reading.
Change Posts Limit in WordPress RSS Feed
First thing you need to do is go to Settings » Reading page in your WordPress admin dashboard.
From here, you need to change the value next to the ‘Syndication feeds show the most recent’ option. Simply enter the number of posts you want to be shown in your RSS feed.
Below this option, you’ll also see the option to show either the full text or excerpt of your posts in RSS feeds.
We recommend using the Excerpt option because it reduces the feed size and increases your page views.
After that, don’t forget to click on the Save Changes button to store your settings.
That’s all, you have successfully limited the number of posts displayed in RSS feed of your site.
Create RSS Sitemap for Search Engines
If you only want to change the number of posts in your RSS feeds for more search engine visibility, then increasing posts in your main WordPress RSS feeds is not the best way to do this.
Many popular search engines like Google and Bing support RSS sitemaps.
Unlike XML sitemaps which contain most of your content, an RSS sitemap provides search engines with the latest posts on your site.
This helps search engines quickly find the updated posts on your website. You can set a different limit of posts that you want to include without affecting your main WordPress RSS feed.
The easiest way to add anRSS sitemap in WordPress is by using All in One SEO for WordPress. It is the best WordPress SEO plugin on the market and allows you to easily optimize your website without any SEO skills.
Do you want to add a search form to a WordPress post?
Adding a search form to your post or page content is a good way to encourage your visitors to find more content and stay on your website longer.
In this article, we’ll show you how to add a search form in your posts and pages using a WordPress search shortcode.
Why Add a Search Form to Your Posts and Pages?
If a visitor has enjoyed reading a post on your WordPress blog, then they will likely want to read more. Offering a search form in the post will help them find more of your content that they are interested in.
Your visitors are also more likely to join your email list, leave a comment, make a purchase, and follow you on social media.
In this tutorial, we’ll show you how to add the standard WordPress search form to your posts. If you want to add a custom search form, then see our step by step guide on how to create a custom WordPress search form.
We’ll show you two methods to add a search form to your posts, and the first is the simplest. Use the links below to jump to the method you’d like to use.
The first thing you need to do is install and activate the plugin. For more details, see our step by step guide on how to install a WordPress plugin.
Upon activation, you need to visit the Settings » SearchWP page and then click on the ‘License’ menu option.
You then need to enter your license key in the License box. You can find this information in your account on the SearchWP website. After that, you should click the Activate button.
Next, you need to click on the Engines menu option. This brings you to a screen where you can choose your search engine settings.
Here you need to create a site-wide search engine. You can adjust your search engine settings by clicking on the Posts, Pages and Media drop downs.
The Attribute Relevance sliders in each section adjust how the search engines value and rank content. For example, if you want to value the post title higher than the content, then you can adjust the sliders accordingly.
After you’ve finished adjusting the settings, make sure to click the ‘Save Engines’ button to save the default search engine.
Adding a Search Form to a Post
Now you need to download the SearchWP shortcodes extension to easily add your new custom post search form to WordPress.
You’ll need to visit the SearchWP Shortcodes Extension website and then click the ‘Download available with active license’ button.
After that, you need to install and activate the extension the same way you installed the plugin above. Now you can add a search form in your posts.
Simply edit the post and place your cursor where you want to add the search form. After that, click the plus ‘Add Block’ icon to bring up the blocks menu.
Next, type ‘html’ into the search box. Then, select the ‘Custom HTML’ block.
Once you’ve added the new block, you can add the following shortcodes and HTML to your page. If you need more help, then see our guide on how to add a shortcode in WordPress.
This code will add a search form to the post, create a section to display the search results, show a no results message if necessary, and add pagination if the results go into multiple pages.
Make sure you click Publish or Update to save your post and make it live.
To see the search form in action, simply view the post on your WordPress website. This is how it looks on our demo site running the Twenty Twenty-One theme.
You can also add a search form to your WordPress posts by use of a code snippet. This method is not recommended for beginners, so if you’re not familiar with code, then you should use Method 1 instead.
In this method you will have to edit your theme’s functions.php file.
Do you want to stop receiving new user email notifications in WordPress?
If you have enabled user registration on your site, then WordPress sends a notification email to the admin email address every time a new user registers. As your site grows, you will get many new users joining every day, which can make these emails annoying to deal with.
In this article, we will show you how to disable new user notifications in WordPress.
Why Disable User Notification Emails in WordPress?
Allowing user registration in WordPress has a lot of benefits. If you have a multi-author blog, online store, or membership website, then user registrations are necessary.
However, there is also a downside. WordPress will send an email by default to the admin email address, notifying you whenever a new user registers.
While these emails are good for keeping an eye on who is registering on your website and keeping out spam registrations, they can be annoying to deal with if you have several people joining each day.
Having a lot of new user notifications can clutter your email inbox, making it difficult to spot important emails from your clients and customers.
This is where disabling emails about new users can come in handy. We will look at two beginner-friendly ways to help you turn off email notifications. The best part is that you won’t have to know how to write code.
Let’s look at how to disable new user notifications in WordPress using WP Mail SMTP and WPCode:
The plugin fixes the problem of emails not being delivered to your customers. That means that all your emails will reach your users instead of ending up in their spam folders or being blocked completely.
WP Mail SMTP also offers different settings to take control of your WordPress emails, such as disabling automatic update notifications. Among these settings is the option to disable new user notification emails sent to the admin’s email.
Note: For this tutorial, we will be using the WP Mail SMTP Pro version since it includes the Email Control options. There is also a free version of WP Mail SMTP that you can use to fix email deliverability issues on your site.
First, you will need to install and activate the WP Mail SMTP plugin on your WordPress site. If you need help, then follow our step-by-step guide on how to install a plugin.
Upon activation, go to WP Mail SMTP » Settings from your WordPress admin panel and then enter your license key. You can find the license key in your WP Mail SMTP account area.
After entering the key, go ahead and click the ‘Verify Key’ button.
You will now see a popup showing that you have successfully verified the key, and your WordPress website will receive automatic updates.
Next, you can head over to the ‘Email Controls’ tab from the menu on the top in WP Mail SMTP.
This is where you can customize your new user registration email notifications.
After that, simply scroll down to the New User section.
Then, you need to click on the toggle to disable the ‘Create (Admin)’ option. And don’t forget to hit ‘Save Settings’ when you are done.
Once this setting is toggled off, the admin won’t receive the default WordPress email from new users. However, the new user who registered will still get an email confirmation.
That’s it! You’ve successfully disabled new user notification emails for admins using the WP Mail SMTP plugin.
Method 2: Disable New User Emails in WordPress Using WPCode
If you don’t want to use an SMTP plugin, then you can add a code snippet to your theme’s functions.php file or use a code snippet plugin to disable email notifications:
<?php
function wpcode_send_new_user_notifications( $user_id, $notify = 'user' ) {
if ( empty( $notify ) || 'admin' === $notify ) {
return;
} elseif ( 'both' === $notify ) {
// Send new users the email but not the admin.
$notify = 'user';
}
wp_send_new_user_notifications( $user_id, $notify );
}
add_action(
'init',
function () {
// Disable default email notifications.
remove_action( 'register_new_user', 'wp_send_new_user_notifications' );
remove_action( 'edit_user_created_user', 'wp_send_new_user_notifications' );
// Replace with custom function that only sends to user.
add_action( 'register_new_user', 'wpcode_send_new_user_notifications' );
add_action( 'edit_user_created_user', 'wpcode_send_new_user_notifications', 10, 2 );
}
);
We don’t recommend editing your functions.php file directly. That’s because even the tiniest of mistakes in the code snippet can make your site inaccessible.
The first thing you will need to do is install and activate the WPCode plugin in WordPress. For more detailed instructions, see our step-by-step guide on how to install a WordPress plugin.
Head over to Code Snippets » + Add Snippet in the WordPress site admin area. There, you will see a library of code snippets to choose from.
The good news is that WPCode has a pre-made template for disabling new user notification emails. Just type in ‘user’ in the search bar and click ‘Use snippet’ under the ‘Disable New User Notifications’ snippet.
Since the template already has the code inside, you don’t have to write your own.
You will see the code already in place with the ‘Code Type’ set as a PHP snippet.
If you want to adjust where this code runs, you can scroll down. The Insertion method should be set to ‘Auto Insert’.
You can open the dropdown menu to decide where you want the code to be executed or even set a schedule for when you want the code to be active.
For example, you can set the code snippet to disable user registrations from certain pages. This could be handy if you have custom user registration pages for different membership programs.
But for most website owners, leaving the default setting to ‘Run Everywhere’ is the way to go.
Once you are done configuring where to execute the code snippet, you can scroll to the top right corner and toggle the ‘Inactive’ button to ‘Active’ to activate the code.
You have now successfully disabled the new user notification emails.
Don’t forget to click the ‘Update’ button to save your changes.
Bonus: Turn Off Comments Notifications in WordPress
WordPress notifications can be super annoying. If your website receives a high volume of traffic, particularly on older posts, then you may also be flooded by comment notification emails.
The good news is that there’s a quick fix for this.
All you have to do is go to Settings » Discussion. The comment notification emails are automatically enabled by default in WordPress.
You can disable comment notifications by unchecking the boxes next to ‘Anyone posts a comment’ and ‘A comment is held for moderation’. That way, you won’t receive emails when someone posts a comment or when a comment is held for moderation.
If your business is not online, you’re either not sold on the idea, or you’re living under a rock. The first place the average millennial looks to find products or services is not a store...
Looking for the best Black Friday and Cyber Monday deals on your favorite WordPress products?
The next few days are the perfect time to buy premium WordPress plugins, themes, web hosting, and tools to grow your business. As always, to help you find the best deals, we have created the ultimate listed of best WordPress Black Friday and Cyber Monday deals for 2021. Some of these are exclusive just for WPBeginner readers.
The year is nearly done, which means the wintery Christmas season is coming. On November 26th and November 29th, respectively, the Christmas season begins with Black Friday. The ideal time of year to buy new...
You could have a beautiful website and get tons of traffic. However, if your visitors are not converting, you’ll need to apply some tweaks, reassess your strategies, and use the best-fitting tools to turn visitors...
Do you want to create additional image sizes in WordPress?
By default, WordPress automatically creates several copies of image uploads in different sizes. Additionally, WordPress themes and plugins can also create their own image sizes.
In this article, we’ll show you how to easily create additional image sizes in WordPress and use them on your website.
Why Create Additional Image Sizes in WordPress?
Normally, all popular WordPress themes and plugins handle image sizes very well. For instance, your WordPress theme may create additional sizes to use as thumbnails on archive pages.
However, sometimes these image sizes may not fit your own requirements. You may want to use a different image size in a child theme or a post grid layout.
You can do this by creating additional image sizes in WordPress and then calling these sizes whenever you need them.
That being said, let’s take a look at how to create additional image sizes in WordPress.
However, if you are creating a custom WordPress theme then you will need to add support for post thumbnails by adding the following code to your theme’s functions.php file.
add_theme_support( 'post-thumbnails' );
Once you enable the support for post thumbnails, you can now use the functionality of registering additional image sizes by using the function add_image_size().
The add_image_size function is used in the following format:
Now if you notice, we have specified three different sorts of image sizes. Each has different modes such as hard crop, soft crop, and unlimited height.
Let’s cover each example and how you can use them in your own projects.
1. Hard Crop Mode
As you may notice, there is a “true” value added after the height. This tells WordPress to crop the image exactly to the size that we have defined (in this case 120 x 120px).
This method is used to ensure that everything is exactly proportionate. This function will automatically crop the image either from the sides or from the top and bottom depending on the size.
2. Soft Crop Mode
By default, soft cropping mode is turned on this is why you do not see any additional value added after the height. This method resizes the image proportionally without distorting it. So you might not get the dimensions that you wanted. Usually, it matches the width dimension and the heights are different based on each image’s proportion. An example display would look like this:
Unlimited Height Mode
There are times when you have super long images that you want to use in your design, but you want to make sure that the width is limited. For instance, infographic images tend to be very long and usually wider than the content width.
This mode allows you to specify a width that will not break your design while leaving the height to be unlimited.
Displaying additional image sizes in your WordPress theme
Now that you have added the functionality for the desired image sizes lets take a look at displaying them in your WordPress theme. Open the theme file where you want to display the image and paste the following code:
Note: This bit of code must be pasted inside the post loop.
That’s all you really have to do to display the additional image sizes in your WordPress theme. You probably should wrap it around with the styling that fits your need.
Regenerating Additional Image Sizes
If you are not doing this on a brand new site, then you probably will have to regenerate thumbnails.
The add_image_size() function only generates the sizes from the point it was added into the theme. This means any post images that were added prior to the inclusion of this function will not have new sizes.
To fix this, you need to regenerate the new image size for older images. This is made easy by the plugin called Regenerate Thumbnails. Once you install and activate the plugin, a new option is added under the menu: Tools » Regenerate Thumbnails
You’ll see the option to regenerate thumbnail for all images or just the featured images. We recommend regenerating all images to avoid any unexpected behavior or broken images.
Don’t forget to save your changes after adding the code.
You can now go and upload an image to a WordPress post or page. In the image block settings you’ll see your custom image sizes under the ‘Image size’ option.
You and other authors working on your website can now select these size options when adding images to posts and pages.
Do you want to learn the difference between landing page vs website?
Many small businesses wonder whether they should make a landing page or a full-fledged website to showcase their online presence.
In this article, we’ll show you the difference between landing page vs website and which one you should make for your business.
What is a Landing Page?
A landing page is a stand-alone web page designed for a specific purpose and goal. It is a highly versatile tool that can be used in marketing, advertising, and lead generation campaigns.
It can also be used as a coming soon website for a business, a single-page website on its own, a product sales page, and more.
Landing pages are specifically designed for higher conversions. They have unique design characteristics that make it easier for users to perform the desired action.
This action could be signing up for an email list, purchasing a product, filling out a form, and more. These actions are referred to as ‘Call to action’.
Overall, the goal of landing pages is to minimize distractions that could take users away, and provide them with all the information they need to take action.
A landing page could also be a stand-alone website on its own with different sections all leading to one clear call to action.
What is a Website?
A website is a collection of different landing pages and sections to help your users find what they’re looking for.
For instance, a typical business website can have an about section, a separate blog page, a contact us page, products and services pages, and more.
There are many different types of websites and they can all have different pages for different features.
How a Website Differs from a Landing Page?
Unlike a landing page, a website can have multiple pages of information with different goals and purposes.
Not each page on a website is as highly focused on conversions as a landing page.
For instance, a business website may want users to get information about all the products and services they are offering. It may also give users multiple calls to action to choose from (e.g. make a purchase, ask for quote, join email list, follow on social media, and more).
Different types of websites would have different goals and a website gives them more ways to engage the audience.
A website could also be supported by multiple landing pages for their marketing campaigns.
For instance, a membership website may utilize a landing page for a subscription plan or an eCommerce store may want to create a pre-launch landing page for an upcoming product.
Landing page vs Website – Which One to Choose?
Many beginners struggle to decide between landing page vs website and which one to choose?
The answer lies in your own requirements and what you want to achieve for your business.
If you want to quickly launch a product, create an online presence for your business, capture potential leads and customers, then a landing page would be an easy way to go.
On the other hand, if you want to create a multi-page online presence for your business, use an eCommerce cart, sell online courses, start a blog, and more, then you will be better off with a website.
Remember you can always choose to create a landing page as a single-page website. You can also convert your landing page to a full-fledged website as your business grows.
Similarly, you can also create a complete website with multiple pages and still add landing pages for specific campaigns.
What Do I Need to Make a Landing Page vs Website?
You’ll need a domain and a web hosting account to create a landing page or a website.
A domain name is the location of your website or landing page (e.g. wpbeginner.com). This is what your users will type in their browsers to view your landing page or website.
The web hosting account is where your landing page or website files will be stored.
Normally, a domain costs around $16 per year, and hosting plans start at $7.88 per month (usually paid annually). Now this is a significant amount if you are just starting out.
Luckily, our friends at Bluehost has agreed to offer a free domain name and a generous discount on hosting for WPBeginner users.
Basically, you can get started for just $2.75 per month.
Bluehost is one of the biggest hosting companies in the world and an officially recommended WordPress hosting provider.
Once you have signed up for a hosting account, Bluehost will automatically install WordPress for you.
WordPres is the world’s best website builder and makes it super easy to create a website or make landing pages. Simply log in to your hosting account and then login to your WordPress account dashboard.
How to Make a Landing Page for My Business
The easiest way to make a landing page is by using SeedProd. It is the best landing page builder on the market and allows you to easily create landing pages using a drag and drop interface and without writing any code.
Note: There is also a free version of SeedProd available that you can use to give it a try. However, you’ll need to upgrade to unlock all features and templates available in the premium version.
Upon activation, you need to enter your SeedProd license key. You can find this information under your account on the SeedProd website.
You can now start building your first landing page.
Simply head over to SeedProd » Pages page and click on the ‘Create new landing page’ button.
Next, you will be asked to choose a template page as a starting point for your landing page. SeedProd comes with dozens of beautiful templates that you can completely modify or you can even start with a blank template.
This will bring up a popup asking you to provide a name for your landing page. Enter a name for your page and then click on the ‘Save and Start Editing the Page’ button.
SeedProd will now load the page builder interface with a live preview of your chosen template.
You can simply point and click on any item in the live preview to edit it. You can also add new blocks from the left column to your page.
SeedProd comes with all commonly used elements as blocks. Each block has its own settings that you can adjust using a simple user interface.
Once you are satisfied with your landing page, you can click to save or publish your page to make it live.
Publishing Landing Page as Homepage for Your Domain
Now if you want to only display your landing page when someone enters your domain name, then you’ll need to set it up as your homepage in WordPress.
Simply go to Settings » Reading page. From here you need to select ‘A static page’ under ‘Your homepage displays’ option.
After that, go ahead and select the landing page you created earlier as your ‘Homepage’. Don’t forget to click on the Save changes button to update your settings.
Creating Landing Pages for Other Domain Names?
What if you wanted to create landing pages for other domain names? This comes in handy if you have multiple domains to cover different markets and regions.
SeedProd comes with built-in domain mapping support. This allows you to easily create a landing page in SeedProd and map it to any other domain name.
WordPress is the most powerful website builder used by millions of business websites, eCommerce stores, blogs, news and media sites.
Since you have already installed WordPress on your Bluehost account, you can simply login to your account dashboard and start working on your website.
First, you want to add new pages by visiting Pages » All Pages page and clicking on the Add New button.
WordPress comes with a powerful editor that allows you to easily add design and content elements to your pages as blocks. To learn more, see our tutorial on how to use WordPress editor.
Tip: Need ideas for pages? See our list of the most important pages to create for a new WordPress website for some excellent ideas.
Next, you would want to choose a design for your website. WordPress comes with thousands of free and paid themes for all sorts of websites.
The real power of WordPress comes from its plugins. These are like apps for your WordPress websites that you can install to extend its features. Start by checking out our pick of the essential WordPress plugins.
Need more help with your new website? See our detailed tutorial on how to make a website with step by step instructions.
The exciting world of eCommerce is ever-growing. Each day, hundreds of thousands of new products get put up for sale. Whether you’ve recently started an online business or you’ve been at it for a while...