Tag - Step

How to Add Wholesale Pricing in WooCommerce (Step by Step)


Do you want to setup wholesale pricing in WooCommerce for bulk purchases and wholesale buyers? By default, WooCommerce only allows you to set normal pricing for a product.

In this article, we will show you how to easily setup WooCommerce wholesale pricing for customers who want to place bulk orders.

Setting up wholesale pricing discounts in WooCommerce

Who Needs to Setup WooCommerce Wholesale Pricing

Online stores that can fulfill large quantity orders may want to set up wholesale pricing for bulk buyers as well as retail prices for other customers.

You can also use the wholesale pricing if you want to offer discounts to dropshipping businesses.

Now the problem is that by default WooCommerce does not allow you to set up different pricing options based on quantity or customer type.

This means your wholesale customers will have to manually place their orders and negotiate discounts. This is not very efficient and will cause delays which would affect their experience in your store.

That being said, let’s take a look at how to easily set up WooCommerce wholesale pricing and allow wholesale customers to quickly place their orders.

Setting up Wholesale Pricing for WooCommerce

For this tutorial, we’ll be using the WooCommerce Wholesale Suite. It is a suite of three plugins that allow you to sell wholesale products on your WooCommerce store.

First thing you need to do is install and activate the Wholesale Prices plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » WWS License page to enter your license key. you can find this information under your account on the plugin website.

Enter license key

Next, you need to edit a product in WooCommerce or create a new one.

On the product edit screen, scroll down to the ‘Product Data’ section. From here you can set the retail price for your product like you would normally do.

Below that, you’ll find an option to set the wholesale price for the product and the minimum quantity required to unlock wholesale pricing.

Wholesale pricing

If you want to strictly implement the minimum order quantity for wholesale customers, then you can set the product’s Wholesale Order Quantity Step to 1.

Setting up Quantity Based Wholesale Pricing

Now, let’s suppose you want to offer different pricing for even higher quantity. WooCommerce Wholesale Pricing allows you to do that as well.

On the product edit page, scroll down to the pricing section and check the box next to ‘Enable further wholesale pricing discounts based on quantity purchased’ option.

Quantity based pricing

This will show the quantity based pricing setting. You can select the wholesale customer role and then enter a starting quantity and end quantity. Finally, add pricing for orders falling between those quantities.

Once you’re done, click on the ‘Add Quantity Discount Rule’ button.

Repeat the process if you need to add more rules for quantity based pricing. You can now save your product or publish it.

Viewing Wholesale Product Prices

By default, wholesale product pricing is available to users with the ‘Wholesale Customer’ user role. This means logged in wholesale customers will see the wholesale pricing on the product page.

For testing purposes, you can create a new user account by visiting Users » Add New page and select ‘Wholesale Customer’ as the user role.

Wholesale customer

After that, you need to log in with the new user account and go to the product you edited earlier. You’ll find the wholesale pricing listed there along with regular pricing.

Wholesale product pricing

Setting up Global Discounts for Wholesale Customers

Normally, you would add a wholesale price for each product manually. However, the WooCommerce Wholesale Prices plugin also allows you to set global discounts for wholesale customers.

Simply head over to WooCommerce » Settings page and switch to the Wholesale Prices tab. From here you need to click on the Discount link.

Global discount

Next, you need to select the wholesale customer role and add a discount value in percentage. Once done, click on the Add Mapping button to save the discount.

This global discount will only be applied to products that don’t have any wholesale pricing set up. Wholesale customers would be able to take advantage of the discount regardless of product quantity.

Setting up Quantity Based Global Discount

If you want to offer a global quantity based discount, then you can set it up on the ‘Discount’ page under plugin settings.

Simply select the wholesale customer role and add the start / end quantity with the discount value in percentage.

Quantity based global discount

Next, click on the Add Mapping button to save your discount rule.

Creating Wholesale Customer Roles

Not all wholesale customers are the same. Some may order more often and in higher quantities than others. Wouldn’t it be nice if you can distinguish between existing wholesale customers?

WooCommerce Wholesale Prices allows you to do that by creating wholesale customer roles.

By default, the plugin comes with the Wholesale Customer user role which you can use for all your wholesale customers. To create more roles, go to WooCommerce » Wholesale Roles page.

Wholesale user roles

You can now select the user role on the Global discount settings or on the product pages to offer different pricing options.

We hope this article helped you set up WooCommerce wholesale pricing on your eCommerce store. You may also want to see our list of best WooCommerce plugins, best WooCommerce themes, and best WooCommerce hosting to grow your business.

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.

The post How to Add Wholesale Pricing in WooCommerce (Step by Step) appeared first on WPBeginner.



Source link

How to Setup WooCommerce Conversion Tracking (Step by Step)


Do you want to track conversions on your WooCommerce store? Conversion tracking helps you understand what’s working on your online store and what needs more attention.

It helps you keep track of your best-performing products while also allowing you to see what’s stopping customers from completing a purchase.

In this guide, we’ll show you how to easily setup WooCommerce conversion tracking, step by step.

Setting up conversion tracking on your WooCommerce store

Why Set up WooCommerce Conversion Tracking?

WooCommerce makes it easy to sell anything online. However, once you have set up your WooCommerce store, you would need to learn what works on your website to grow your business.

You will need to learn which products are popular among your users, what they are viewing the most, how many users end up making a purchase, how are they finding your website, and more.

To get all this information, you need to set up conversion tracking on your WooCommerce store. This helps you get access to insights you need to make informed decisions about growing your business.

Conversion tracking helps you unlock key performance indicators including your eCommerce conversion rate, average order value, shopping cart abandonment, cost per acquisition, top referral sources, and more.

Apart from that you also get to learn about:

  • Shopping behavior – It tells you what products users are adding to carts, which products are being abandoned, what pages lead users to a successful purchase, and more.
  • Checkout behavior – Helps you view how users successfully complete a checkout.
  • Product performance – Tells you which products are bringing you most sales.
  • Product list performance – This report allows you to group products and see their performance as a list. This comes in handy when you want to see how different product categories are doing on your store.

That being said, let’s take a look at how to unlock all this useful information by setting up conversion tracking on your store.

Setting up WooCommerce Conversion Tracking

The easiest way to track WooCommerce conversions is by using Google Analytics. It shows you where your visitors are coming from and what they do when they are on your website.

The challenge is that setting up Google Analytics with WooCommerce requires a lot of custom coding, event tracking, etc. The good news is that there are plugins that can make it super easy to setup conversion tracking, and you can do it without writing any code.

For this tutorial, we will be using MonsterInsights. It is the best Google Analytics plugin for WooCommerce, and comes with an eCommerce addon that literally enables all the tracking within few clicks.

See our guide on how to install Google Analytics in WordPress for complete installation instructions.

Once you have installed Google Analytics using MonsterInsights, you can move on to setting up WooCommerce conversion tracking.

Step 1. Turn on Enhanced Ecommerce Tracking in Google Analytics

First, you need to enable enhanced eCommerce tracking in your Google Analytics account. Go to your Google Analytics dashboard and select your website.

From here, you need to click on the Admin button located at the bottom left corner of the screen.

Google analytics admin

Next, you need to click on the ‘Ecommerce settings’ option.

eCommerce settings

After that, you need to turn on ‘Enable eCommerce’ and ‘Enable Enhanced Commerce’ options.

Google Analytics will now turn on the eCommerce reporting feature for your account.

Step 2. Install eCommerce Addon in MonsterInsights

MonsterInsights comes with the eCommerce addon which helps you properly set up WooCommerce conversion tracking in Google Analytics.

First, you need to visit the Insights » Addons page to install and activate the eCommerce addon.

Ecommerce addon

Next, you need to head over to Insights » Settings page and switch to the eCommerce tab. From here, you need to turn on ‘Use Enhanced Ecommerce’ option.

Turn on eCommerce reporting in MonsterInsights

MonsterInsights will automatically detect your eCommerce software. Currently, it supports WooCommerce, Easy Digital Downloads, MemberPress, and LifterLMS.

That’s all, you have successfully setup WooCommerce conversion tracking on your store.

Viewing WooCommerce Conversion Reports

Now that you have setup conversion tracking on your WooCommerce store, you need to give Google Analytics some time to collect data.

After a while, you would be able to view your eCommerce reports in both MonsterInsights and Google Analytics.

Let’s start with your eCommerce reports in MonsterInsights.

Ecommerce Reporting in MonsterInsights

Log in to your WordPress site and go to Insights » Reports page and switch to the eCommerce tab.

MonsterInsights eCommerce reporting overview

At the top, you’ll get your most important conversion metrics including the conversion rate, transactions, revenue, and average order value.

Below that you will see a list of your top products with quantity, sale percentage, and total revenue.

Next, you’ll see your top conversion sources and shopper behavior reports including the number of times products were added and removed from the cart.

Add to cart and abandoned cart reports

That’s not all the data. You can dig down deeper with more advanced reports under your Google Analytics account.

WooCommerce Tracking in Google Analytics

Google Analytics provides even more in-depth reporting for your WooCommerce store.

Simply visit your Google Analytics dashboard and click on Conversions » Ecommerce from the left column.

Google Analytics eCommerce conversion reports

First, the overview report will provide you important numbers such as revenue, conversion rate, transactions, and average order value.

You can then switch to different reports for more in-depth analysis. For example, shopping behavior report will break down user sessions to add to cart, cart abandonment, and sessions that resulted in the checkout.

Shopping behavior

Boost Your WooCommerce Conversions and Increase Sales

Now that you have the data you needed to track your WooCommerce conversions, let’s take a look at how to improve your conversion rates and make more sales.

1. Improve Speed and Performance

According to a StrangeLoop case study, a 1 second delay in page load time can lead to 7% loss in conversions, 11% fewer page views, and 16% decrease in customer satisfaction.

Strangeloop case study

Slower websites create bad user experience which results in lower conversion rates. See our complete step by step guide to improve your WooCommerce speed and performance.

2. Recover Abandoned Cart Sales

On average 60 – 80% of people who “add to cart” do not end up buying. This means if you have an online store, then you’re losing out on a lot of sales.

Luckily, there are several best practices that help you recover some of those abandoned cart sales. See our tips on how to recover abandoned cart sales and increase your conversions.

3. Provide Users Alternatives

If users decide to leave your website without making a purchase, then there is very little chance that they will ever see your website again.

You need to provide users a chance to stay in touch even if they don’t end up making a purchase.

You can do this by creating an email newsletter for your WooCommerce store.

We recommend using Constant Contact or SendinBlue. Both of them are in our list of the best email marketing service for small businesses.

For more techniques, see our guide on how to convert WooCommerce visitors into customers.

We hope this article helped you setup WooCommerce conversion tracking on your eCommerce store. You may also want to see our list of the best WooCommerce plugins that you can install right away.

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.

The post How to Setup WooCommerce Conversion Tracking (Step by Step) appeared first on WPBeginner.



Source link

How to Add a Preloader Animation to WordPress (Step by Step)


Do you want to add a preloader to your WordPress site? A preloader is an animation indicating the progress of a page load in the background.

Preloaders assure users that the website is working on loading the page. This can help improve user experience and reduce overall bounce rate.

In this article, we’ll show you how to easily add a preloader to WordPress.

Adding a preloader to your WordPress website

What is a Preloader and When You Should Use it?

A preloader is an animation or status message indicating the progress of page load in the background.

Normally when you visit a website, your browser starts downloading different parts of the content. Some parts of the website load faster (i.e. text, HTML code, CSS) whereas others load way slower (i.e images and videos).

If most of your content is text with very few images and videos, then you don’t really need to add a preloader to your website. Instead, you should focus on improving website speed and performance for faster page loads.

On the other hand, if most of your content is images, photographs, and video embeds, then your users need to wait a while before they can actually see all the content.

During these partial downloads, your website may feel slow. Sometimes users may even think that it is broken. Adding a preloader, fills this gap and shows the user a progress indicator during the page load.

You can see a live example of a preloader by clicking on the Preview button while writing a blog post in WordPress.

WordPress will open a live preview of your blog post in a new window, and it will display a preloader before it actually shows the live preview.

WordPress post preview preloader

That being said, let’s take a look at how you can easily add a preloader to your WordPress website.

Method 1. Adding a Preloader in WordPress using WP Smart Preloader

This method is recommended because it is easier to implement and does not require any changes to your WordPress theme.

First thing you need to do is install and activate the WP Smart Preloader plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » WP Smart Preloader page to configure plugin settings.

WP Smart Preloader settings

First, you need to choose a preloader style or page load animation. The plugin comes with six built-in animations to choose from. You can also upload your own custom HTML and CSS to create a custom preloader.

After that, you can make the preloader appear only on the homepage by checking the ‘Show only on Home Page’ option.

Next, you need to scroll down to the ‘Duration to show Loader’ section. You need to specify the duration for the preloader. The default option is 1500 milliseconds (1.5 seconds) which should work for most sites, but you can change that if you want.

Set preloader duration and fade out

You can also set the time loader takes to completely fade out. The default option is 2500 seconds or 2.5 seconds.

Finally, don’t forget to click on the ‘Save changes’ button to store your settings.

You can now visit your website to see the preloader in action.

WP Smart Preloader Preview

Method 2. Adding a Preloader in WordPress using Preloader Plugin

This method is flexible but requires additional steps to properly implement it on your WordPress site.

The first thing you need to do is install and activate the Preloader plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit the Plugins » Preloader page to configure plugin settings.

Preloader settings

First, you need to enter the Hex code for the background color you want to use for the loading screen. The default option is #FFFFFF (white). You can use an online color picker tool to find the HEX code for the color you want to use.

Next, you need to provide the URL of the preloader image you want to use. The plugin comes with a default animation image.

If you want to use other animation, then you’ll find a link to download an animated preloader image from a third-party website. You can then upload that image to your wp-content folder and paste the URL here.

Next, you need to choose where you want to display the preloader.

Select preloader locations

You can choose to display it on all pages of your website, or you can select a specific section.

Finally, you will see the instruction to add the following code to your WordPress theme’s header.php file.

<div id="wptime-plugin-preloader"></div>

Before you leave the page, don’t forget to click on the ‘Save changes’ button to store your settings.

We don’t recommend adding code to your WordPress theme because it will get wiped off when you update the theme.

If you are using a child theme, then it is ok to add the code to your child theme’s header.php file.

An even better solution would be to add this code using a separate Code Snippets plugin, or in a site-specific plugin.

Here’s the code you’d need to add:

function wpb_add_preloader() 
echo '<div id="wptime-plugin-preloader"></div>';

add_action( 'wp_body_open', 'wpb_add_preloader' );

Note: this method of adding code will only work on WordPress themes that are compatible with the wp_body_open() function added in WordPress 5.2.

This method of adding the code makes sure that your code stays there even if you update the theme.

Once you have added the code, you can visit your website to see the preloader in action.

Preloader preview

We hope this article helped you learn how to easily add a Preloader to your WordPress site. You may also want to see our list of the most useful WordPress tips, tricks, and hacks for more cool ideas.

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.

The post How to Add a Preloader Animation to WordPress (Step by Step) appeared first on WPBeginner.



Source link

How to Create a Photo Contest in WordPress (Step by Step)


Do you want to run a photo contest in WordPress? Photo contests are a great way to build user engagement and quickly get lots of new visitors to your website.

Photo contests require users to submit a photo to join the contest or giveaway. Active user participation makes them highly engaging and quite fun.

You can run photo contests on almost any kind of website including business websites, online stores, WordPress blog, etc.

In this article, we’ll show you step by step instructions to easily create a photo contest in WordPress.

Easily create a photo contest in WordPress

Step 1. Install and Activate RafflePress

The first thing you need to do is install and activate the RafflePress plugin. For more details, see our step by step guide on how to install a WordPress plugin.

You’ll need at least their Pro plan to access the image submit feature.

RafflePress is the best WordPress giveaway / contest plugin on the market. It allows you to easily run viral contests on your website, so you can increase your traffic, email subscribers, and social media followers.

It comes with built-in social actions and integrates with all top email marketing platforms.

Note: RafflePress plugin was built our team, so we can use it on WPBeginner. Due to popular request, we have released it as a plugin for everyone.

Once you have activated RafflePress, the plugin will add a new menu item labeled RafflePress to your WordPress admin sidebar. Clicking on it will take you to the plugin’s settings.

First, you’ll need to enter your plugin license key. You can find this information under your account on the RafflePress website.

Add RafflePress license key

Simply enter the license key and click the ‘Verify license’ button. RafflePress will verify and store your licensing information.

After that, you can move on to create your photo contest.

Step 2. Create Your First Contest

After setting up the plugin, you need to visit RafflePress » Add New page to create your first contest.

RafflePress will launch its contest builder interface. First, you need to enter a title for this campaign and then select a template.

Add a title and select template for your campaign

The templates are pre-made campaigns based on your business goals. You can start with a template and customize it to match your needs. You can also choose the classic template to start with a basic campaign.

We’ll go ahead and select the Classic Template.

On the next screen, click on the prize title to enter your prize details and image.

Enter prize details

After that, you need to select the contest duration under the Start and End time. You can select the date, time, and timezone for your contest duration.

Campaign duration

So far so good.

Now, let’s add some actions. These are the things you want users to do in order to join your contest giveaway.

Switch to the ‘Actions’ tab and you will see a list of actions that you can add to your contest.

For a photo contest giveaway, you would want to add ‘Submit an image’ action.

Submit an image action

Simply click to add the action to your contest. RafflePress will now show you action settings in the left column.

Image action settings

You can provide a title for the action and select the number of entries users will be rewarded for completing it.

You can also make an entry mandatory and even allow users to submit daily entries. Below that, you can provide additional instructions on how users can participate.

Now let’s add some more actions to your contest. This will enable you to stay in touch with those users and build a following.

RafflePress allows you to add social media actions like visit Facebook page, send a tweet, follow on Instagram, and more.

You can also connect your email marketing service to grow your email list.

Step 3. Design Your Photo Contest

RafflePress gives you easy to use design tools to customize the appearance of your photo contest widget.

Simply switch to the Design tab, and you will see options to choose a layout, button color, and fonts for your campaign.

Design your photo contest

If you plan to run the photo contest as a standalone landing page vs embedding it in a blog post, page, or a sidebar widget, then you can also choose the page background color.

RafflePress allows you to add your giveaway to any WordPress post or page. You can also create a custom landing page for your photo contest by using any of the top WordPress page builders and adding your giveaway contest widget there. (more on this later).

Step 4. Configure Contest Settings

After tweaking the design options, switch to the ‘Settings’ tab under the builder to review other settings.

They are all very self-explanatory, but we’ll go through them one by one.

General settings

First, you’ll review the general settings. If you wanted to create a standalone photo contest page, then you can do that here. Provide a name for your campaign page under the Page Permalink option without any spaces.

You can also show and hide the number of entries, contest winners, and the powered by link.

Next, switch to the ‘Giveaway Rules’ tab. This is where you’ll list the rules for joining the giveaway. You can start by clicking on the ‘Generate Rules’ button to automatically generate rules using a sample template.

Generate contest rules

After that, switch to the email verification. From here you can tun email verification on and off. Turning this on would make it compulsory for users to confirm their email address.

Email verification

If you want to add Google Analytics or other tracking codes like Facebook pixel, then switch to the ‘Success Tracking’ tab. Here you can add those codes and track users for on-site and off-site retargeting.

Success tracking

Next comes the Success Redirect tab. This is where you can tell RafflePress to redirect users to a specific page after they have joined the contest.

Success redirect

Finally, you can turn the social login feature On/Off from the social logins tab.

That’s all you have completed the photo contest setup. Don’t forget to click on the Save button to store your campaign.

Step 5. Add Photo Contest Widget to Your Website

RafflePress offers multiple ways to add your contest campaign anywhere on your website.

You can simply edit a post or page or create a new one, and then add the RafflePress block to the Gutenberg editor.

Add RafflePress block

After that, you need to select the giveaway contest you created earlier. RafflePress block will now load a preview of your giveaway widget inside the WordPress content editor.

Giveaway contest widget

You can also add your giveaway by using the shortcode. This comes in handy when you want to display the contest in a sidebar widget, add it to your page builder layout, or use it in the Classic Editor.

Simply edit your giveaway and switch to the ‘Publish’ tab in the builder interface. From here, click on the shortcode option and RafflePress will show the shortcode you can use.

Copy shortcode

Copy the shortcode and edit the post or page where you want to display the giveaway. Simply paste the shortcode inside the post editor and you are done.

If you want to display it in a sidebar widget, then go to Appearance » Widgets page and add a Text widget to your sidebar.

Add shortcode widget

After that, simply paste the shortcode inside the widget settings and click the save button.

You can now visit your website to see the photo contest widget in the sidebar.

Photo contest widget in sidebar

Step 6. Publicize Your Photo Contest Giveaway

For a successful photo contest, you’ll need to plan ahead. Start promoting the event beforehand through social media, a blog post, and your email newsletter.

You can also add a countdown timer banner to create FOMO effect and build anticipation.

We recommend adding the contest widget to your sidebar because it allows users to see it before the contest begins.

Step 7. Announcing The Photo Contest Winners

Once you have added the photo contest giveaway to your website, it would automatically go live at the date and time you choose.

After that, you can go to RafflePress » Giveaways and click on the Image Entries link below your photo contest campaign.

Image entries

You’ll now see all the images submitted to the contest. You can pick the winners or let RafflePress choose a winner randomly.

Again go back to the RafflePress » Giveaways page and click on the Need Winners link next to your giveaway.

Random winners

RafflePress will now randomly select a winner for your giveaway.

Winner selected

You can now notify the winner via email and let them know how to claim their prize.

We hope this article helped you learn how to easily create a photo contest in WordPress. You may also want to see our other practical tips to quickly get more traffic to your WordPress blog.

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.



Source link

How to Find and Fix Broken Links in WordPress (Step by Step)


Everyone agrees that broken links are bad for user experience. But did you know that broken links can significantly hurt your WordPress SEO rankings?

Yes, it’s proven that having broken internal links on your website negatively impacts SEO rankings.

In this article, we will show you how to easily find and fix broken links in WordPress, so you can improve your user experience and SEO rankings.

Finding and fixing broken links in WordPress

What is a Broken Link?

A broken link, also known as dead link, is a link that no longer works. Broken links can happen for many reasons, but the most common reason is when a page is either deleted or moved to a different location which causes the server to show a 404 not found error.

On WordPress sites, broken links typically occur when moving a site to new domain name, or when deleting a post or page without proper redirection.

Sometimes broken links can also happen due to a typo, and they can go unnoticed for months if not years.

This is why it’s extremely important to regularly monitor broken links on your site and fix them, so you can keep them from hurting your SEO rankings.

In this guide, we will share top four methods to find broken links in WordPress. After that, we will show you an easy way to fix those broken links.

Here’s a table of content for easy navigation:

Ready? Let’s get started.

SEMRush is one of the best SEO tool on the market. It allows you to easily monitor your website’s SEO rankings and overall health.

It also includes a powerful site audit tool that crawls your website to find common errors and prepare a detailed report for you.

First, you’ll need to sign up for a SEMRush account.

It is a paid service, but they do offer a limited free account which allows you to crawl up to 100 pages on one domain name. Paid plan limits start from 100,000 pages a month.

Once you are logged in, you need to click on the ‘Site Audit’ link from the left menu.

This will bring you to the Site Audit page. From here, click on the ‘New Site Audit’ button at the top to add your website.

Adding a new site audit in SEMRush

You will be asked to enter your domain name. After that, you will be asked to configure site audit settings. You can select the number of pages to crawl and choose a crawl source.

Site Audit settings

Click on the start crawling button to continue.

SEMRush will now begin crawling your website for the site audit. This may take a few minutes depending on how many pages you selected for the crawl.

Once finished, you can click on your domain Under the Site Audit section to view your report.

SEMRush broken links

To see the broken links on your site, you will need to click on the ‘Broken’ link under the report overview.

Broken links report in SEMRush

You can now click on the Export button at the top right corner of the screen to download your crawl report. You will need it when fixing broken links on your website (more on this later in the article).

Ahrefs is an excellent all-in-one SEO tool for marketers, businesses, and SEO professionals. It offers detailed SEO insights into your own website or any of your competitors.

You can use it for keyword research, competition analysis, organic and paid keyword ideas, and site health monitoring including broken links.

First, you’ll need to sign up for an Ahrefs account. It is a paid service with plans starting from $99 per month. They also offer a full featured 7 day trial for $7.

Once you are logged into your Ahref’s dashboard, you need to enter your domain name under the Site Explorer tool.

Ahrefs site explorer tool

Site explorer tool will now crawl your website to prepare reports. This may take some time depending on how much content you have on your website.

Once finished, you’ll see an overview of your site explorer results. From here, you need to click on the Pages » Best by Links menu and then sort your report by 404 status.

Broken links

You can now export your report in CSV format to fix the broken links on your WordPress site.

Google Search Console is a free tool offered by Google to help webmasters manage their site’s visibility in search results. It also notifies you about errors including 404 errors which are caused by a broken link.

For more details, see our ultimate Google Search Console guide with step by step set up instructions.

After you have logged in to your Google Search Console account, click on the ‘Coverage’ link from the left menu.

Google Search index coverage report

You’ll find 404 errors either under Errors or Excluded tabs. Clicking on them will show you a list of errors or issues Google encountered while visiting your website.

Excluded broken links

Clicking on the 404 error will show you all the links on your website that are broken links and return a 404 error.

You can now click on the download button to get the list of all 404 errors on your website. You’ll need this to fix broken links on your website.

For this method, we’ll be using the Broken Link Checker plugin. However, this method is not recommended because it is resource-intensive and will slow down your website. Managed WordPress hosting companies like WP Engine already block users from installing this plugin on their servers.

The plugin checks for broken links on your website including both internal and external links that are resulting in a 404 error.

First, you’ll need to install and activate the Broken Link Checker plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, the plugin will start working in the background to find links in your posts, pages, and comments. You can now go to Tools » Broken Links page to view the full report.

Broken Links Report in WordPress

If you have been running your WordPress blog for a long time, then this report will include broken links to third-party websites as well.

You will have to manually sort the list to find broken links on your website.

You will need to keep Broken Link Checker active on your website until you fix broken links. After that, you can deactivate the plugin because it will keep checking for broken links which will slow down your server.

We have shown you four different methods to find broken links in WordPress. Now let’s talk about how to easily fix broken links in WordPress.

The best way to fix a broken link is to redirect it to another page. For example, if you moved the contents of an article to a different address, then you will need to redirect it to the newer article.

Similarly, if an article does not exist anymore, then you would want to point users to a similar page that is closely related to the contents of the old article.

You can do this by setting up 301 redirects.

First, you will need to install and activate the Redirection plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Tools » Redirection page to set up redirects. You need to add the old broken link in the ‘Source URL’ field and the new URL in the ‘Target URL’ field.

Set up redirects for broken links

After that, click on the ‘Add redirect’ button to save your changes.

You can now test this by visiting the old broken link, and you’ll be redirected to the new page.

Repeat the process for all broken links on your website.

For more information, see our guide on how to set up redirects in WordPress for beginners.

We hope this article helped you learn how to easily find and fix broken links in WordPress. You may also want to see our actionable tips on how to optimize your images for web, and our pick of the best WordPress membership plugins to create a membership site.

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.



Source link

How to Change Your WordPress Site URLs (Step by Step)


Do you need to change your WordPress URL? Whether you’re moving from HTTP to HTTPs, changing your domain name, migrating from local server to live site, or transferring to a subdomain, you will need to know how to change your WordPress site URL.

The WordPress address and site address are extremely important fields because they reference the address of your website on the internet and the location of your website files.

In this article, we will share four different ways to easily change your WordPress site URLs (step by step). This guide will specially come in handy when you are fixing common WordPress errors or moving a WordPress site.

Easily change your WordPress site URLs

Why Change WordPress Site URLs?

There are many reasons why you might need or want to change your WordPress URL. For example:

Apart from that, you may need to change the WordPress address settings if you are seeing too many redirects error in WordPress or when troubleshooting another WordPress error.

WordPress Address vs Site Address

When changing WordPress site URL, you will need to update two separate settings: WordPress Address and Site Address.

This can be confusing for many beginners because they don’t know what’s the difference between the two settings.

Your WordPress Address (URL) is the address where WordPress files and folders are stored including your admin pages, media files, plugins, themes, etc.

Your Site Address (URL) in WordPress is the public facing part of your website. This is what your visitors will type in to reach your website. This is also the link that you put on your business cards.

For majority of users, the WordPress Address and Site Address URL will be the exact same link.

However in some cases, large companies may host their WordPress site on a different server because their corporate website has many other applications, and they want to isolate where each app is hosted.

But for majority of users, these two WordPress URLs need to stay the same.

That being said, let’s take a look at how to easily change WordPress site URLs. We will show you the following methods, and you can choose the one that works best for you.

Ready? let’s get started.

Method 1. Change WordPress Site URLs from Admin Area

This method is the easiest. If you can already access the WordPress admin area, then we recommend using this method.

Simply login to your WordPress website and go to Settings » General page. From here you can change WordPress site URLs under the ‘WordPress Address’ and ‘Site Address’ options.

Change WordPress site URLs in the admin area

WordPress Address and Site Address are usually the same address.

Don’t forget to click on the ‘Save Changes’ button to store your settings. You can now visit your website to make sure that everything is working OK.

Method 2. Change WordPress Site URLs Using functions.php File

This method is recommended for users who cannot access the admin area of their WordPress website.

Simply connect to your WordPress site using an FTP client and go to /wp-content/themes/your-theme-folder/.

Edit WordPress functions file

From here you need to locate the functions.php file and edit it using a plain text editor like Notepad or TextEdit.

Next, you need to add the following code at the bottom:


update_option( 'siteurl', 'https://example.com' );
update_option( 'home', 'https://example.com' );

Don’t forget to replace https://example.com with your own site URLs. You can now save your changes and upload the file back to your website hosting using FTP.

You can now visit your website to see if everything is back to normal.

The advantage of this method is that it updates the site URLs in the database. WordPress updates the database option for site URLs every time your functions file is loaded.

Once everything gets back to normal, don’t forget to remove the two lines of code from your WordPress functions file.

Method 3. Change WordPress Site URLs Using wp-config.php File

This method is only recommended if you are unsure which WordPress theme you need to edit or cannot find the functions.php file.

For this method, you will be adding the site URLs to your WordPress configuration file called wp-config.php. This file is located in the root folder of your website and contains important WordPress settings.

Simply connect to your website using an FTP client and edit the wp-config file. You need to add the following code just above the line that says ‘That’s all, stop editing! Happy publishing’.


define( 'WP_HOME', 'https://example.com' );
define( 'WP_SITEURL', 'https://example.com' );

Don’t forget to replace https://example.com with your own domain name.

You can now save your changes and upload them back to your server. After that, visit your website to make sure that everything is working fine.

Method 4. Change WordPress Site URLs in the Database Using phpMyAdmin

Another way to update WordPress site URLs is by changing them directly in your WordPress database.

First, you need to make a WordPress database backup. This step is really important and will help you undo database changes in case anything goes wrong.

After that, you need to go to your web hosting account’s dashboard and click on the phpMyAdmin icon under the Databases section.

Note: Our screenshot is from Bluehost but most other WordPress hosting companies will also have the ability for you to edit database settings.

phpMyAdmin

Once you click the link, it will launch the phpMyAdmin app, which provides a web-based interface to edit MySQL databases. To learn more about it, see our guide on how to WordPress database management with phpMyAdmin

Inside phpMyAdmin interface, you need to click on your WordPress database from the left column. The app will now display tables inside your WordPress database.

Edit options table

Next, you need to scroll down to the options table. By default the database prefix is wp_ but since you can change WordPress database prefix, your screenshot may have a different prefix.

PhpMyAdmin will now display the rows inside the options table. You need to locate the rows where option_name is siteurl and home.

Edit siteurl and home values

Next, click on the pencil icon on the left to edit each row and change the option_value field to the new site URL. After that, click on the tiny Go button at the bottom right corner to save your database changes.

Edit option_value

You can now visit your website to see if everything is working fine.

Frequently Asked Questions (FAQs)

Over the years we have helped hundreds of thousands of users create a WordPress website, start a blog, or start an online store. In this time, we have answered many different questions related to changing WordPress URLs. Below are some of the most frequently asked questions.

Why are my WordPress Address and Site Address fields greyed out?

If the WordPress address (URL) is greyed out on the settings page of your admin area, then it means that the URLs are hard coded in the wp-config.php file.

WordPress Address URL Greyed Out

To change your WordPress URL, you will need to follow method 3 in our article to edit the wp-config.php file and change the URL accordingly.

How to recover WordPress after url address change in settings?

Sometimes non-techy users can accidentally change WordPress URL and Site Address settings from the WordPress admin area. To recover from that, you will have to follow our guide above to change the WordPress URLs back using functions.php, wp-config, or the database method.

Is there a WordPress change URL plugin that can bulk update URLs in all blog posts, pages, and other content areas?

Yes, you can either use the Velvet Blues Update URLs plugin or the Better Search Replace plugin.

When you change your WordPress URL, you will need a way to bulk update links through your WordPress posts, pages, and other areas in your database. The above plugins are a huge time saver.

Aside from using them to update URLs when moving websites, we also use them for various other platform migrations such as moving from WordPress.com to WordPress.org, Blogger to WordPress, Weebly to WordPress, etc.

We hope this article helped you easily change the WordPress site URLs. You may also want to see our guide on the must have WordPress plugins, and how to speed up WordPress.

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.



Source link

How to “Easily” Add Anchor Links in WordPress (Step by Step)


We occasionally use anchor links in our longer WordPress posts to help users quickly jump to the section they want to read.

Anchor links are often used in the table of content sections because they help users move up and down a lengthier article without reloading the page. It can also help with SEO as Google may show them below your search listings for easy navigation (more on this later).

In this step by step guide, we will explain what are anchor links and show you how to easily add anchor links in WordPress.

Adding anchor links in WordPress

Ready? Let’s start with a live example of anchor links.

Below is a list of all the topics we will cover in this guide. Go ahead and click on any of these links, and you’ll be taken to that specific section.

An anchor link is a type of link on the page that brings you to a specific place on that same page. It allows users to jump to the section they’re most interested in.

Take a look at the animated screenshot below:

Anchor link preview

As you can see, clicking on the anchor link takes the user to the specific section on the same page.

Anchor links are commonly used in lengthier articles as the table of content which allows users to quickly jump to the sections they want to read.

Why and when you should use anchor links?

An average user spends less than a few seconds before deciding if they want to stay or leave your website. You have just those few seconds to convince users to stay.

The best way to do that is to help them quickly see the information they’re looking for.

Anchor links make this easier by allowing users to skip the rest of the content and jump directly to the part that interests them. This improves user experience and helps you win new customers / readers.

Anchor links are also great for WordPress SEO. Google can display an anchor link in the search results as a “jump to link”.

Jump to link in search results

Sometimes Google can also display several links from that page as jump to links, and this is proven to increase the click-through rate in search results. In other words, you get more traffic to your website.

Multiple jump to links below a search result

Having said that, let’s take a look at how to easily add anchor links in WordPress.

If you just want to add a few anchor links in your article, then you can easily do so manually.

Basically you need to add two things for an anchor text to work as intended.

  1. Create an anchor link with a # sign before the anchor text.
  2. Add the id attribute to the text where you want the user to be taken.

Let’s start with the anchor link part.

Step 1. Creating an anchor link

First you need to select the text that you want to link and then click on the insert link button in the WordPress Gutenberg editor.

Add a link in WordPress

This will bring up the insert link popup where you usually add the URL or look for a post or page to link.

However, for an anchor link, you’ll simply use # as prefix and enter the keywords for the section you want the user to jump to.

Creating anchor link

After that click on the enter button to create the link.

Some helpful tips on choosing what text to use as your anchor # link:

  • Use the keywords related to the section you are linking to.
  • Don’t make your anchor link unnecessarily long or complex.
  • Use hyphens to separate words and make them more readable.
  • You can use capitalization in anchor text to make it more readable. For example: #Best-Coffee-Shops-Manhattan.

Once you add the link, you will be able to see the link you have created in the editor. However, clicking on the link doesn’t do anything.

That’s because the browsers cannot find the anchor link as an ID.

Let’s fix that by pointing browsers to the area, section, or text that you want to show when users click on the anchor link.

Step 2. Add the ID attribute to the linked section

In the content editor, scroll down to the section that you want the user to navigate to when they click on the anchor link. Usually, it is a heading for a new section.

Next, click to select the block and then in the block settings click on the Advanced tab to expand it. You can simply click on the ‘Advanced’ tab under the heading block settings.

HTML Anchor

After that, you need to add the same text that you added as the anchor link under the ‘HTML Anchor’ field. Make sure that you add the text without the # prefix.

You can now save your post and see your anchor link in action by clicking on the preview tab.

What if the section you want to show is not a heading but just a regular paragraph or any other block?

In that case, you need to click on the three-dot menu on the block settings and select ‘Edit as HTML’.

Edit as HTML

This will allow you to edit the HTML code for that particular block. You need to select find the HTML tag for the element you want to point to. For example, <p> if it is a pagraph, or <table> if it is a table block, and so on.

Now, you need to add your anchor as the ID attribute to that tag, like the following code:


<p id="best-coffee-shops-manhattan">

You will now see a notice that this block contains unexpected or invalid content. You need to click on the convert to HTML to preserve the changes you made.

Convert to HTML

How to Manually Add Anchor Link in Classic Editor

If you are still using the older classic editor for WordPress, then here is how you can add the anchor link.

Step 1. Create the anchor link

First, select the text that you want to change into the anchor link and then click on the ‘Insert Link’ button.

Adding an anchor link in Classic Editor

After that, you need to add your anchor link with a # sign prefix followed by the slug you want to use for the link.

Step 2. Add the ID attribute to the linked section

The next step is to point the browsers to the section you want to show when users click on your anchor link.

For that, you’ll need to switch to the ‘Text’ mode in the classic editor. After that scroll down to the section that you want to show.

Adding anchor ID in Classic Editor

Now locate the HTML tag you want to target. For example, <h2>, <h3>, <p>, and so on.

You need to add the ID attribute to it with your anchor link’s slug without the # prefix, like this:


<h2 id="best-coffee-shops-manhattan">

You can now save your changes and click on the preview button to see your anchor link in action.

How to Manually Add Anchor Links in HTML

If you are used to writing in the Text mode of the old Classic Editor in WordPress, then here is how you would manually create an anchor link in HTML.

First, you need to create the anchor link with a # prefix using the usual <a href=""> tag, like this:


<a href="#best-coffee-shops-manhattan">Best Coffee Shops in Manhattan</a>

Next, you need to scroll down to the section that you want to show when users click on the link.

Usually, this section is a heading (h2, h3, h4, etc.), but it could be any other HTML element or even a simple paragraph <p> tag.

You need to add the ID attribute to the HTML tag, and then add the anchor link slug without the # prefix.


<h2 id="best-coffee-shops-manhattan">Best Coffee Shops in Manhattan</h4>

You can now save your changes and preview your website to test the anchor link.

This method is suitable for users who regularly publish long-form articles and need to create table of contents with anchor links.

The first thing you need to do is install and activate the Easy Table of Contents plugin. For more details, see our step by step guide on how to install a WordPress plugin.

This plugin allows you to automatically generate a table of contents with anchor links. It uses headings to guess the content sections, and you can customize it fully to meet your needs.

Upon activation, simply go to Settings » Table of Contents page to configure plugin settings.

Easy Table of Contents plugin settings

First, you need to enable it for the post types where you want to add table of contents. By default, the plugin is enabled for pages, but you can also enable it for your posts as well.

You can also enable the auto-insert option. This allows the plugin to automatically generate the table of contents for all articles, including the older articles that match the criteria.

If you only want to automatically generate table of contents for specific articles, then you can leave this option unchecked.

Next, scroll down a little to select where you want to display the table of contents and when you want it to be triggered.

Select where and when to display table of contents

You can review other advanced settings on the page and change them as needed.

Don’t forget to click on the ‘Save Changes’ button to store your settings.

If you enabled the auto-insert option, then you can now view an existing article with the specified number of headings.

You’ll notice that the plugin will automatically display a table of contents before the first heading in the article.

If you wanted to manually generate table of contents for specific articles, then you need to edit the article where you want to display a table of contents with anchor links.

On the post edit screen, scroll down to the ‘Table of Contents’ tab below the editor.

Manually add table of contents with anchor links

From here, you can check the ‘Insert table of contents’ option and select the headings you want to include as anchor links.

You can now save your changes and preview your article. The plugin will automatically display a list of anchor links as your table of contents.

Table of contents preview

For more detailed instructions, see our article on how to add table of contents in WordPress.

We hope this article helped you learn how to easily add anchor links in WordPress. You may also want to see our tips on how to properly optimize your blog posts for SEO and our pick of the best WordPress page builder plugins.

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.



Source link

How to Add a Search Bar to WordPress Menu (Step by Step)


Do you want to add a search bar to your WordPress navigation menu?

By default, WordPress lets you add a search section on your website sidebar, footer, and other widget-ready areas. However, many users prefer to have the WordPress search box in the navigation menu because it is easily noticeable on the top.

In this article, we will show you how to easily add a search bar to your WordPress menu without having any coding knowledge.

Adding a Search Bar to WordPress Menu

Why You Should Add a Search Bar in Menu?

A site search makes it easy for your users to find what they’re looking for without leaving your website. It helps improve user experience on your website and boosts engagement.

This is why most usability experts recommend adding a search option in the navigation menu, so users can easily find it.

However, the default WordPress search widget is limited to only widget-ready areas.

Luckily, there are many different WordPress search plugins which let you add the search bar to different locations on your site including menus.

For this tutorial, we have chosen the Ivory Search free plugin. It allows you to create new custom search forms and enhance the default WordPress search.

With that said, let’s take a look at how to add a search bar to your WordPress menu.

Adding a Search Bar to WordPress Menu

First thing you need to do is to install and activate the Ivory Search plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Ivory Search » Search Forms page to create a new search form.

Ivory Search Include Options

The plugin automatically adds the default search form, so you can quickly review its settings and add it to your WordPress menu.

Search settings allow you to select which content on your website should be included in the site search.

The ‘Includes’ section lets you choose which post types, posts, pages, category, custom fields, etc. should be included in the search query. You need to review the options and click the Save Form button.

Next, there is the ‘Excludes’ section, which lets you define the content that you don’t want to show in search results. Once done, click the Save Form button again to store your settings.

Ivory Search Exclude Options

The ‘AJAX’ section lets you enable AJAX functionality for your search form.

Ivory WordPress Search Bar AJAX Settings

The ‘Options’ section lets you define how many results to show per search page along with other advanced settings.

Define Search Results Per Page in Ivory Search Plugin

Now your custom WordPress search form is ready. Once again, don’t forget to save your settings.

After that, the next step is to add the search form to your navigation menu. Simply go to Ivory Search » Settings page to configure the search bar to your WordPress menu.

On this page, you will see the ‘Select Menu’ tab. From here, you can simply toggle the menu where you would like to add the search bar.

Select WordPress Menu to Show Search Bar

This list of menus (Primary Menu and Footer Menu) belongs to your WordPress template. If you change the template of your site, then the list will be automatically updated with the available menus from your template.

After that, you can choose the search style from the Form Style accordion below.

The plugin allows you to display the search form in five different styles: Default, dropdown, sliding, full width, and popup.

Ivory Search Form Styles

If you like, you can further customize the options by going to the ‘Settings’ section below ‘Menu Search’.

From there, you can add your search form to the header, footer, manage mobile display for search, and more. These settings will also help in controlling the search results for your users.

Ivory Search More Settings

Once you are satisfied, make sure to save your settings. After that, you can head over to your website to see the search bar in the WordPress navigation menu.

Search Bar in WordPress Menu Preview

We hope this article helped you learn how to add a search bar to a WordPress menu. You may also want to see our list of most useful tips to speed up WordPress and boost performance.

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.

The post How to Add a Search Bar to WordPress Menu (Step by Step) appeared first on WPBeginner.



Source link

How to Add Infinite Scroll to your WordPress Site (Step by Step)


Do you want to add infinite scroll to your WordPress blog?

Infinite scroll is a web design technique which automatically loads your next page content when users reach the bottom of a page. It allows users to see more content on your blog without clicking on the pagination or ‘Load More’ button.

In this article, we will show you how to easily add infinite scroll on your WordPress blog (step by step).

Adding Infinite Scroll to Your WordPress Blog Easily

What is Infinite Scroll?

Infinite scroll is a web design trend which uses AJAX page load instead of numeric page navigation to automatically load your next page content and display it at the end of current page. Infinite scrolling makes it easier to browse more content by simply scrolling down. It loads content continuously and infinitely as users keep scrolling.

Traditionally, users would have to click on ‘next,’ ‘previous’ buttons or page numbers to see older blog articles.

When using AJAX short for Asynchronous Javascript and XML, webpages can communicate with the server without reloading the entire page. It enables web apps to process user requests and deliver data without refresh.

The best examples of infinite scroll design are the popular social media sites such as Facebook, Twitter, Instagram, Pinterest, and more. If you are using any of them, then you know how content loads endlessly on your social media timeline.

Is Infinite Scrolling Suitable for Every Website?

Many content websites on the internet are using infinite scroll technique to improve the browsing experience and increase engagement. This leads many beginners to ask the questions like is it suitable for every website, or is it good for my site?

Infinite scrolling is excellent for sites that present content in a timeline or feed, like the social media apps. It offers a fantastic browsing experience to the users looking for time-based content.

Next, infinite scroll design is perfect for mobile and touch devices. For mobile users, scrolling is more user-friendly than taping on tiny page links.

Touchscreen Web Interaction

The most significant advantage of infinite scroll technique is a smooth browsing experience. Users don’t need to click on the pagination links manually. Content loads quickly with scrolling and keeps users engaged.

But on the other side, it can also make your site navigation harder. With continuous loading, it is hard to figure out where (on which page) a blog article is. Some users even find it overwhelming to see many articles all at once.

Another disadvantage of infinite scroll design is that you cannot have a footer. Even if you have it, it will be hidden under endless articles continuously loading. Many sites add essential links on the footer, so not having it can disappoint some users.

Perhaps the most concerning issue with infinite scrolling is that it can slow down your website or even crash the server. When we added infinite scroll to one of our smaller blogs, we experienced server crash after users scrolled unnecessarily causing memory exhaustion on a small WordPress hosting account. We recommend that you use managed WordPress hosting if you’re looking to try infinite scrolling.

Now that you know the pros and cons of infinite scroll design, you can decide whether you need to add it to your blog or not.

If you have decided to add infinite scrolling to your WordPress blog, then you can do it easily. We will be showing you multiple plugins that you can use, so you can choose the one that best suits your needs.

Adding Infinite Scroll to Your WordPress Blog with Catch Infinite Scroll

First thing you need to do is install and activate the Catch Infinite Scroll plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, WordPress will add a new menu item labeled ‘Catch Infinite Scroll’ to your WordPress admin panel. You need to click on it to configure the plugin settings.

Catch Infinite Scroll Settings

First, you can choose a trigger option for loading articles. The plugin lets you load content automatically as users scroll down the page or add a ‘Load More’ button.

Load on Scroll or Click - Catch Infinite Scroll Plugin Settings

You should select the ‘Scroll’ option to trigger autoload with scrolling. Alternatively, you can select the ‘Click’ option if you want to add a load more button.

Next, you can see the navigation selector, next selector, content selector, and item selector. You don’t need to change anything on these options because default options work quite well.

After that, there is an Image option where you can add content loader icon. By default, it has a loader GIF image. If you have a better picture, then you can change it.

Upload a New Loading Image for WordPress Infinite Scroll

‘Finish Text’ option includes the message which will be shown once a user completes viewing your articles. By default, the text says ‘No more items to display.’ You can easily edit this text as needed.

Articles Loading Finished - Finish Text Option Catch Infinite Scroll

Once done, click on the Save Changes button.

That’s it! The infinite scrolling is now active on your blog. You can visit your blog and see the infinite scrolling in action.

WordPress Infinite Scroll Preview

Alternative WordPress Plugins to Add Infinite Scroll in WordPress

Catch Infinite Scroll works well with most of the WordPress themes; however, it can fail with some themes. In such a scenario, you can use any of the following infinite scroll WordPress plugins.

1. Ajax Load More

Ajax Load More settings

Similar to Catch infinite Scroll, Ajax Load More plugin also lets you add endless scroll and clickable Load More buttons to your WordPress site.

The plugin offers more customization options, including many page loading icon styles, button styles, etc. For a detailed guide, you can see our tutorial on creating a load more posts button in WordPress using Ajax Load More plugin.

However, the plugin has some learning curve for beginners. It has an advanced interface with many options, including repeater template, shortcode builder, WordPress queries, and more.

It will require some coding skills to apply infinite scrolling with this plugin.

2. YITH Infinite Scrolling

YITH Infinite Scrolling is a simple alternative to Ajax Load More or Catch Infinite Scroll plugin.

Similar to Catch Infinite Scroll plugin, it has minimal options to set up scroll-based web interaction on your site. You just need to install and activate the plugin and enable infinite scrolling.

YITH Infinite Scrolling Plugin Settings

Anyone, including beginners, can easily set up infinite scrolling using this plugin. However, it doesn’t have a ‘Load More’ button option, which is included in the other two plugins mentioned above.

We hope this article helped you to learn how to add infinite scroll design to your WordPress blog. You may also want to see our guide on how to add scroll-depth tracking in WordPress.

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.

The post How to Add Infinite Scroll to your WordPress Site (Step by Step) appeared first on WPBeginner.



Source link

How to Add a Mortgage Calculator in WordPress (Step by Step)


Recently one of our readers asked about adding a mortgage calculator in WordPress.

A mortgage calculator is a useful tool for real estate websites because it allows visitors to see if they can afford the property they’re looking at.

In this article, we will show you how to easily add a mortgage calculator in WordPress.

Adding a Mortgage Calculator in WordPress

What is a Mortgage Calculator? Who Needs It on Their Website?

A mortgage calculator is a tool that allows users to get estimates for their mortgage payment, with interest rate and amortization period.

With a mortgage calculator, your website visitors can select a monthly payment or period, and the mortgage calculator form will calculate the costs based on a given interest rate.

If you are making a real website with IDX property listings, then a mortgage calculator will help you get more leads and increase user engagement on your website.

That being said, let’s take a look at how to easily create a mortgage calculator in WordPress.

Creating a WordPress Mortgage Calculator – (Step by Step)

Adding a mortgage calculator in WordPress used to be quite difficult. Either you had to add a piece of code to your site or install a third-party mortgage calculator service.

Now, with Formidable Forms, you can easily create a mortgage calculator with a drag and drop interface.

Formidable Forms Advanced WordPress form plugin

Formidable Forms is the most advanced WordPress form builder plugin on the market. It allows you to create advanced forms like an online quiz, web directory, job listings, calculators and more.

Formidable makes it easy to build advanced forms without writing code. You can use features like conditional logic, advanced calculations, file uploads, repeater fields, dynamic pre-filled fields, and more.

It comes with super useful pre-made templates for more than 20 types of forms. We will be using their mortgage calculator template as a starting point for this tutorial.

Let’s get started.

First thing you need to do is to install and activate the Formidable Forms plugin. For more details, see our step by step guide on how to install a WordPress plugin.

You’ll need at least their Business plan to use the mortgage calculator feature.

Upon activation, you need to click on the ‘Add your license key now’ option to enter your license details.

Add Your Formidable Forms Pro License Key

This will take you to the Global Settings page where you’ll need to enter your Formidable Forms license key.

Save Your Formidable Forms License key

You can find the license key in your account area on the Formidable Forms website.

Once done, you will see the license activation success message. Now you can simply refresh your page to load the premium features.

After that, go to Formidable » Forms to add a new form. There, you will see a Contact Us form already added by default. Go ahead and click on the ‘Add New’ button to create a new mortgage calculator form.

Add New Formidable Form

On the next page, you will see many pre-made templates which help you quick get started. You need to locate the mortgage calculator template under the Premium Templates section.

You will notice that there are two mortgage calculator templates available: Simple Mortgage Calculator and Advanced Mortgage Calculator.

Let’s start with the Simple Mortgage Calculator first.

Place your mouse pointer over the template, and then it will show you two buttons: Create Form and Preview.

Choose Simple Mortgage Calculator Template

You need to click on the ‘Create Form’ button. This will bring up up a popup window where you need to add a name and description, and then click on the ‘Create’ button.

Create New Simple Mortgage Calculator Form

The plugin will now load the Formidable Forms editor interface with your selected simple mortgage form calculator template.

WordPress Simple Mortgage Calculator Form Builder

From here you can simply point and click to customize each form field as needed.

For example, you can change the field label and default value for the Mortgage Amount field.

Customizing Simple Mortgage Calculator Field Options

However, you need to be careful about the last field ‘Monthly Payment’ because it includes the calculation formula as the default value.

If you are not a calculation expert, you need to leave it unchanged.

Customizing Monthly Payment Field Options Formidable Mortgage Calculator

After reviewing all your form fields, click on the Update button at the top right corner of the screen. After that you can click on the Close icon to exit the form editor.

Simple Mortgage Calculator Successfully Created

Your simple mortgage calculator is now ready. The next step is to add it to a page or post where you want to show the calculator.

Simply create a new page/post or open an existing one to add the mortgage calculator. On your page editor, click on the ‘Add New Block’ icon, and then select Formidable Forms Gutenberg block.

Add Formidable Forms Block in WordPress Page Editor

After that, you can see the Formidable Forms block added to your page editor.

Next, you need to select the Simple Mortgage Calculator form in the dropdown option, and WordPress will load the form automatically.

Adding Simple WordPress Mortgage Calculator to Page Editor

After that, you can publish or update your page, and then preview it to see how the simple mortgage calculator works.

For example, here is how it looks on our demo website.

Simple WordPress Mortgage Calculator Preview

Creating an Advanced Mortgage Calculator in WordPress

The simple mortgage calculator shown above is good for basic mortgage calculation. However, if you want to calculate taxes, insurance payments, PMI, loan to value ratio, etc, then you will need an advanced mortgage calculator for your real estate website.

With Formidable Forms, making an advanced mortgage calculator is also a quick and straightforward job.

First, you need to visit Formidable » Forms page and click on the Create New button to add a new form.

Add New Formidable Form

After that, take your mouse over the Advanced Mortgage Calculator template and click on the Create Form button.

Select Advanced Mortgage Calculator Template Formidable Forms

Next, WordPress will open a popup window where you can enter a name and description for your form and then click on the ‘Create’ button.

Advanced Mortgage Calculator Editor in Formidable Forms

Now you can customize each form field by clicking on it.

When you click a field, the Field Options will appear in the left column. From there, you can change the field label, default value, etc.

Customizing Field Options in Advanced Mortgage Calculator Form

You can review and edit the Advanced Options of Financial Analysis fields. However, if you don’t know the calculation formulas then its best to leave them untouched.

Calculation Fields in Advanced Mortgage Calculator Formidable Forms

Once you are done, click on the Update button at the top right corner, and then click the Close icon.

Your advanced mortgage calculator form is ready; you can now add it your WordPress posts, pages, sidebars, or property listing pages

On your page editor, click on the ‘Add New Block’ icon and then select Formidable Forms block.

Add Formidable Forms Block in WordPress Page Editor

Simply edit a post, page, or listing and add the Formidable Forms block to your content editor.

From the block settings, select the Advanced Mortgage Calculator form that you created earlier. After that, WordPress will automatically load the mortgage calculator on the page editor.

Add Advanced WordPress Mortgage Calculator to Page Editor

Now you can publish or update your page and preview it to see how your mortgage calculator looks. Here is how the Formidable Forms advanced mortgage calculator looks on our demo website.

Advanced WordPress Mortgage Calculator Preview

As shown in the screenshot above, the Advanced Mortgage Calculator lets your users enter the home value, loan information including amount, interest rate, amortization schedule, annual taxes, insurance, and PMI.

The plugin will then calculate the data and display monthly payments, duration, and other information.

We hope this article helped you learn how to add a mortgage calculator in WordPress. You may also want to see our list of the best email marketing services and best business phone services for small business.

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.

The post How to Add a Mortgage Calculator in WordPress (Step by Step) appeared first on WPBeginner.



Source link