Monday, April 4, 2022

How to Add Custom Items to Specific WordPress Menus

Do you want to add custom items to specific WordPress menus?

WordPress menus are navigational menus that are displayed at the top of most websites. Sometimes you may want to display custom items other than plain links in navigation menus.

In this article, we’ll show you how to easily add custom items to specific WordPress menus.

Adding custom items to WordPress menus

Why Add Custom Items to WordPress Menus

WordPress menus are navigational links usually displayed at the top of a website. On mobile devices, they are often displayed when you tap a menu icon.

example navigational menu

Since this is a prominent location in a typical WordPress website layout, it’s smart to take advantage of it by placing custom items other than plain links in the menu.

For instance, some users may want to display the search form like we do at WPBeginner. A membership website may want to show login and logout links, or you may want to add icons or images to your menu.

By default, navigation menus are designed to display plain text links. However, you can still place custom items in WordPress menus.

That being said, let’s take a look at how you can add custom items to specific menus in WordPress while keeping the rest of your navigation menu intact.

Adding Custom Items to Specific Navigation Menus in WordPress

There are different ways to add custom items to a navigation menu in WordPress. It depends on what type of custom item you are trying to add.

We’ll show you some of the most common examples. You’ll need to use plugins for some of them, while others will require you to add some code.

If you want to skip ahead to a certain section, you can use this table of contents:

Let’s get started.

1. Adding a Search Popup in WordPress Menu

Normally, you can add a search form to your WordPress sidebar by using the default Search widget or block. However, there is no way to add search to the navigation menu by default.

Some WordPress themes have an option to add a search box to your main menu area. But if yours doesn’t, you can use the method below.

For this, you need to install and activate the SearchWP Modal Search Form plugin. For more details, see our step by step guide on how to install a WordPress plugin.

This plugin is an addon for SearchWP, which is the best WordPress search plugin on the market.

The addon is free and will work with default WordPress search as well. However, we recommend using it with SearchWP if you want to improve your WordPress search.

After installing the addon, simply head over to the Appearance » Menus page. Under the ‘Add menu items’ column, click on the ‘SearchWP Modal Search Forms’ tab to expand it.

Add search to menu

Select your search engine and then click on the Add to menu button.

The plugin will add the search to your navigation menu. Click on the ‘Modal search form’ under your menu items to expand it and change the label to Search or anything else you want.

Change search label

Don’t forget to click on the Save Menu button to store your changes.

You can now visit your website to see Search added to your navigation menu. Clicking on it will open the search form in a lightbox popup.

Search in navigation menu

For more details, see our guide on how to add a search button to a WordPress menu.

2. Add Icons and Custom Images to Specific Menus

Another popular custom item that users often want to add to a specific menu is an image or an icon.

For that, you’ll need to install and activate the Menu Image Icon plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, go to the Appearance » Menus page and move your mouse over the menu item where you want to display an icon or image.

Menu Image button

Click on the blue Menu Image button to continue.

This will bring up a popup. From here, you can choose an image or icon to be displayed with that menu item.

Choose image or icon

You can also choose the position of the image or icon with respect to the menu item. For example, you can display the icon right before the menu item like in our example below, or even hide the menu title so only the icon shows.

Don’t forget to click on the Save changes button to store your settings. Repeat the process if you need to add icons or images to other menu items.

After that, you can visit your website to see the custom image or icon in specific menu items.

Menu icons

For more detailed instructions, see our tutorial on how to add images in WordPress menus.

3. Add Login / Logout Links to Specific WordPress Menu

If you are using a WordPress membership plugin or running an online store, then you may want to allow users to easily log in to their accounts.

By default, WordPress doesn’t come with an easy way to display login and logout links in navigation menus.

We’ll show you how to add them by using a plugin or by using code snippet.

1. Add Login / Logout Links to Menus using a Plugin

This method is easier and recommended for all users.

First, you need to install and activate the Login or Logout Menu Item plugin. After that, you need to visit the Appearance » Menu page and click on the Login/Logout tab to expand it.

Add login or logout link to specific WordPress menu

From here, you need to select ‘Log in|Log Out’ item and click on the Add to Menu button.

Don’t forget to click on the Save Menu button to store your changes. You can now visit your website to see your custom login logout link in action.

Login and Logout link preview

The link will dynamically change to login or log out depending on a user’s login status.

Learn more in our tutorial on how to add login and logout links in WordPress menus.

2. Add Login / Logout Links using Custom Code

This method requires you to add code to your WordPress website. If you haven’t done this before, then take a look at our guide on how to add custom code in WordPress.

First, you need to find out the name that your WordPress theme uses for the specific navigation menu location.

The easiest way to find this is by visiting the Appearance » Menus page and taking your mouse over to the menu locations area.

Find menu location name

Right-click to select Inspect tool and then you’ll see the location name in the source code below. For instance, our demo theme uses primary, footer, and top-bar-menu.

Note the name used for your target location where you want to display the login / logout link.

Next, you need to add the following code to your theme’s functions.php file or a site-specific plugin.

add_filter( 'wp_nav_menu_items', 'add_loginout_link', 10, 2 );
function add_loginout_link( $items, $args ) {
    if (is_user_logged_in() && $args->theme_location == 'primary') {
        $items .= '<li><a href="'. wp_logout_url() .'">Log Out</a></li>';
    }
    elseif (!is_user_logged_in() && $args->theme_location == 'primary') {
        $items .= '<li><a href="'. site_url('wp-login.php') .'">Log In</a></li>';
    }
    return $items;
}

After that, you can visit your website and you’ll see the login our log out link in your navigation menu.

Login link added via custom code

This dynamic link will automatically switch to login or logout based on user’s login status.

4. Adding Custom Text to Your WordPress Navigation Menu

What if you just wanted to add text and not a link to your navigation menu?

There are two ways you can do that.

1. Add Custom Text to a Specific Menu (Easy Way)

Simply go to the Appearance » Menus page and add a custom link with # sign as the URL, and the text you want to display as your Link Text.

Add custom text with dummy link

Click on the Add to Menu button to continue.

WordPress will add your custom text as a menu item in the left column. Now, click to expand it and delete the # sign.

Remove link

Don’t forget to click on the Save Menu button and preview your website. You’ll notice your custom text appear in the navigation menu.

It is still a link, but clicking on it doesn’t do anything for the user.

custom text in navigation menu

2. Add Custom Text to a Navigation Menu Using Code

For this method, you’ll add a code snippet to your website. First, you’ll need to find out the name of your theme location as described above in the login/logout link section.

After that, you need to add the following code to theme’s functions.php file or a site-specific plugin.

add_filter( 'wp_nav_menu_items', 'your_custom_menu_item', 10, 2 );
function your_custom_menu_item ( $items, $args ) {
    if ( $args->theme_location == 'primary') {
        $items .= '<li><a title="">Custom Text</a></li>';
    }
    return $items;
}

Simply replace where it says ‘Custom Text’ with your own text.

You can now save your changes and visit your website to see your custom text added at the end of your navigation menu.

This code method may come in handy if you want to programmatically add dynamic elements to specific WordPress menu.

5. Add Current Date in WordPress Menu

Do you want to display the current date inside a navigation menu in WordPress? This trick comes in handy if you run a frequently updated blog or a news website.

Simply add the following code to your theme’s functions.php file or a site-specific plugin.

add_filter('wp_nav_menu_items','add_todaysdate_in_menu', 10, 2);
function add_todaysdate_in_menu( $items, $args ) {
    if( $args->theme_location == 'primary')  {
         
        $todaysdate = date('l jS F Y');
        $items .=  '<li><a>' . $todaysdate .  '</a></li>';
 
    }
    return $items;
}

Don’t forget to replace ‘primary’ with your menu’s location.

You can now visit your website to see the current date in your WordPress menu.

Current date in WordPress menu

You can also change the date format to your own liking. See our tutorial on how to change the date and time format in WordPress.

6. Display User Name in WordPress Menu

Want to add a little more personalization to your navigation menu? You can greet logged in users by their name in your navigation menu.

First, you’ll need to add the following code to your theme’s functions.php file or a site-specific plugin.

add_filter( 'wp_nav_menu_objects', 'username_in_menu_items' );
function username_in_menu_items( $menu_items ) {
    foreach ( $menu_items as $menu_item ) {
        if ( strpos($menu_item->title, '#profile_name#') !== false) {
                         if ( is_user_logged_in() )     {
                                $current_user = wp_get_current_user();
                                 $user_public_name = $current_user->display_name;
                $menu_item->title =  str_replace("#profile_name#",  " Hey, ". $user_public_name, $menu_item->title . "!");
                         } else { 
                         $menu_item->title =  str_replace("#profile_name#",  " Welcome!", $menu_item->title . "!");
                         }
        }
    }

    return $menu_items;
} 

This code first checks if you have added a menu item with #profile_name# as link text. After that, it replaces that menu item with logged in user’s name or a generic greeting for non-logged in users.

Next, you need to go to Appearance » Menus page and add a new custom link with the #profile_name# as Link text.

Add special tag to a menu item

Don’t forget to click on Save Menu button to store your changes. After that, you can visit your website to see the logged-in user’s name in the WordPress menu.

User name in WordPress navigation menu

7. Dynamically Display Conditional Menus in WordPress

So far we have shown you how to add different types of custom items to specific WordPress menus. However, sometimes you may need to dynamically show different menu items to users.

For instance, you may want to show a menu only to logged in users. Another scenario is when you want the menu to change based on what page the user is viewing.

This method allows you to create several menus and only display them when certain conditions are matched.

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

Upon activation, you need to visit Appearance » Menus page. From here you need to create a new menu that you want to display. For instance, in this example we created a new menu for logged in users only.

Create new menu

After you have created the menu, switch to the Manage Locations tab.

From here, you need to click on the Conditional Menus link next to the menu location.

Add a conditional menu

After that, you need to select the menu you created earlier from the drop down menu.

Then, click on the ‘+ Conditions’ button to continue.

Select menu you want to show

This will bring up a popup window.

From here, you can select the conditions that need to be met in order to display this menu.

Choose condtions

The plugin offers a bunch of conditions to choose from. For instance you can show the menu based on specific page, category, post type, taxonomy, and more.

You can also show different menus based on user roles and logged in status. For instance, you can show a different menu to existing members on a membership website.

We hope this article helped you learn how to add custom items to specific WordPress menus. You may also want to see our guide on how to choose the best web design software, or our expert comparison of the best live chat software 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 Custom Items to Specific WordPress Menus first appeared on WPBeginner.


April 04, 2022 at 03:30PM

Friday, April 1, 2022

9 Best Internal Linking Plugins for WordPress (Automatic + Manual)

Are you looking for the best internal linking plugins to improve your SEO strategy?

Internal links play an important role in search engine optimization (SEO). They help search engines discover your content and rank them higher in search results. An internal linking plugin can help automate the process and provide suggestions for building better links.

In this article, we’ll show you some of the best internal linking plugins for WordPress.

Best internal linking plugins for WordPress

Why Use an Internal Linking Plugin for WordPress?

Internal links are links between pages on your own website. Having internal links is important for your WordPress SEO. They help search engines like Google crawl your website and discover new content to index and rank.

For example, the paragraph above has two internal links to our relevant content which not only helps users, but also helps search engines rankings.

Generally, the more links a page has pointing to it, the more likely it is to rank higher in search results. That means that you can use internal links to point to important pages on your site as a way to increase their traffic.

Internal links also help your visitors easily find related articles and provide a better user experience overall. This can also help increase pageviews and reduce your bounce rate.

WordPress provides an easy way to add links to your blog posts and pages. However, manually adding internal links can be time-consuming, and the chances are that you might miss an opportunity to link an important page.

This is where an internal linking plugin for WordPress comes in handy. It helps save time and lets you automatically link specific keywords and focus keyphrases.

You also get suggestions for adding internal links. This way, you won’t miss out on linking essential pages. It even helps find content that doesn’t have any internal links and offers recommendations for building internal links.

That said, let’s look at the best internal link plugins for WordPress.

1. All in One SEO (AIOSEO)

The All in One SEO plugin

All in One SEO (AIOSEO) is the best SEO plugin for WordPress. Over 3 million people use the plugin to optimize their site for search engines.

The plugin is beginner-friendly and helps you improve your SEO score without technical knowledge.

AIOSEO offers a Link Assistant feature which enables you to build better internal links.

Link assistant overview

It crawls the links on your WordPress website and provides a detailed report. You can see the number of internal links, outbound links, and affiliate links for each post and page.

The plugin also shows opportunities to improve your internal links. You can see the exact phrase and the anchor text on which it will create the link. With a click of a button, you can then add them to your content.

Find internal link opportunities and orphaned pages

Plus, you get to see orphaned pages. These are pages that have no internal links. Adding links to these pages can help them to get indexed faster and rank higher in search results.

AIOSEO also lets you quickly search for blog posts to link to from inside the WordPress content editor, and provides options to add nofollow, sponsored, and UGC (user-generated content) tags.

Other than that, AIOSEO offers many other powerful features to optimize your website. You can create XML sitemaps, perform an SEO audit, find and fix broken links, optimize your site for rich snippets, and more.

2. MonsterInsights

MonsterInsights

MonsterInsights is the best Google Analytics plugin for WordPress and is trusted by over 3 million professionals.

It offers a Popular Post feature that lets you show your best articles anywhere on your site. Using the Inline Popular Post option, you can show your top blog posts within the content.

MonsterInsights Popular Posts Widget

The plugin offers different themes you can choose from and customize the color and size of the title, label, and background. MonsterInsights also lets you select whether to show popular posts based on views, comments, and share count.

With MonsterInsights, you can also track affiliate link clicks and outbound link clicks on your WordPress website. This way, you get to see how people interact with your content and which link they click the most.

Other advanced features offered by MonsterInsights include eCommerce tracking, form conversion tracking, dashboard reports, and more.

3. Yoast SEO

Yoast SEO

Yoast SEO is another popular WordPress SEO tool that helps optimize your site for search engines. It is an alternative to All in One SEO.

The plugin also comes with a basic internal linking tool for premium users. It scans your content for internal links and then provides suggestions for improving your links from within the WordPress content editor.

However, it is not as comprehensive as the All in One SEO link assistant. You can see our detailed comparison of Yoast SEO vs AIOSEO for more details.

Yoast offers several other basic SEO features like adding SEO titles and meta descriptions, adding images for Facebook and Twitter cards, generating XML sitemaps, and more.

4. Internal Link Juicer

Internal Link Jucier

Internal Link Juicer is the next internal linking plugin for WordPress on our list. It’s a free WordPress plugin and helps you automatically build internal links in your content.

You can add specific keywords and phrases in the plugin, and it will add links for you. It gives you more control over your internal links, such as diversifying anchor text, so they look natural and don’t appear computer-generated.

The plugin also lets you backlist and whitelist specific posts from internal linking. This way, you can prevent authors from linking particular articles and pages. It even provides an option to limit the number of links per post.

5. Rank Math

Rank math

Rank Math is another SEO plugin for WordPress that has built-in basic features to help you improve your internal linking strategy. The plugin quickly scans your website for links and then provides you suggestions for adding internal links.

It shows the suggestions inside your WordPress content editor. You can simply copy the recommended link and add it to your text.

Rank Math link builder is not as comprehensive as AIOSEO but rather more in line with the basic link building solution like Yoast.

Besides link suggestions, the plugin also offers other features like Google Schema Markup, keyword rank tracking, 404 error tracking, redirection manager, and more.

6. Link Whisper

Link whisper

Link Whisper is a premium WordPress plugin that helps you create internal links for your website and boost your search engine rankings.

Like many other plugins on our list, it also suggests adding internal links to your content inside the WordPress editor. The plugin is straightforward to use and offers a simple interface.

Using the plugin, you can also find blog posts and pages with little or no internal links. Then using the internal link suggestion tool, you can add links to these orphaned pages.

7. Interlinks Manager

Interlinks Manager

Interlinks Manager is a free internal linking plugin for WordPress. The plugin lets you monitor and optimize your internal links with ease, and you can see the data inside your WordPress admin area.

This plugin is different from the rest because it uses an algorithm to detect whether your internal links are properly optimized and estimates the link juice for each link.

Using this information, you can improve the link juice distribution and build internal links to important pages to boost your SEO. The plugin also offers options to customize the algorithm and lets you tweak it according to your needs.

8. YARPP

YARPP

YARPP or Yet Another Related Posts Plugin is a free-to-use plugin and it’s great for showing your top landing pages anywhere on your website.

When your site starts to grow, your top pages could get buried under new pages. Using the plugin, you can make your top pages visible to visitors and create internal links so search engines can also easily find them on your site.

What’s different about the plugin is that it not only lets you show related pages, but you can also use it to show related blog posts, media files, and call to action buttons.

YARPP is extremely easy to use, and it offers options to change the algorithm that determines which pages and posts to show. Besides that, it comes with pre-built themes, and you can customize them according to your website’s design.

9. Internal Links Manager

Internal links manager

Internal Links Manager is a simple and beginner-friendly WordPress plugin that helps you automatically add links to specific keywords.

The plugin only focuses on adding internal links when certain words and phrases are mentioned in the content. All you have to do is provide the URL and the keyword for the link.

The user interface is straightforward to use. However, you don’t get internal linking suggestions or a report showing how many internal and external links are on your website.

Which Internal Linking Plugin is the Best?

After going through the list, we believe that All in One SEO (AIOSEO) is the best internal linking plugin for WordPress.

It provides a comprehensive internal link report and offers detailed suggestions to add internal links to your content. AIOSEO also helps find pages that don’t have any internal links.

Other than that, it’s a complete SEO toolkit with powerful features. You can use it to optimize your WordPress site for search engines and grow your organic traffic.

At WPBeginner, we use AIOSEO to optimize our site for higher rankings.

We hope this article helped you pick the best internal linking plugin for WordPress. You may also want to see our guide on how to get a free SSL certificate for your website, or our comparison of the best domain registrars.

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 9 Best Internal Linking Plugins for WordPress (Automatic + Manual) first appeared on WPBeginner.


April 01, 2022 at 03:00PM

Thursday, March 31, 2022

How to Add Ebook Downloads in WordPress

Do you want to add ebook downloads to your WordPress site?

WordPress makes it easy for you to upload your ebook files in PDF format and make them available for download. You can also sell ebooks or use them to get more email subscribers.

In this article, we will show you how to add ebook downloads in WordPress as well as how to make the most out of your ebooks.

How to add ebook downloads in WordPress

We’ll cover a few different methods, so simply click the links below to jump to the section you need:

Method 1. Direct Ebook Downloads in WordPress Posts

With this method, you can offer your ebook as a free download using the WordPress File block. This block can even display your ebook’s content directly in the WordPress post or page

First you need to edit the post or page where you want to add your ebook download. You can then find the spot where you want to display your ebook, and click on the + icon to add a new block.

In the popup that appears, type File to find the right block.

add file block and click on media library

Once you click on the File block, it will add the block to your page.

In the File block, click on the Media Library button, and a popup will appear.

upload file to the media library

You can now select your ebook file, or drag and drop the file to upload it.

By default, the File block displays your ebook’s contents in a small PDF viewer.

It also has controls that visitors can use to scroll through your ebook, download the file, or even print your ebook.

WordPress' embedded PDF viewer

Sometimes, you may not want to display a preview. For example, your ebook may span lots of pages or have images that you want visitors to see fullscreen. 

If you don’t want to include a preview, then you can find the PDF settings in the right sidebar of the content editor. You can then click to expand this section, and turn off the ‘Show inline embed’ slider. 

Customizing the WordPress File block

WordPress will now remove the preview, and display only a Download button and a link. 

Visitors can download this file to their local computer by clicking on the blue Download button, or open this ebook in a new tab, by clicking on the link.

If you prefer, you can remove the Download button. To remove it, first click on the ‘Download button settings’ section in the WordPress sidebar.

You can then click on the ‘Show download button’ slider to turn this setting off.

The 'Download button settings'

Without the download button, visitors can still download the file manually, but they would have to launch your ebook in a new tab first to find the download option.

As you’re making changes to your File block, you can see how it will appear to visitors by clicking on the Preview button at the top of the screen. 

Once you’re happy with your File block, you may want to add more blocks. For example, you might write some supporting text or add a call-to-action button to encourage visitors to download your ebook.

How to create an ebook marketing page

When you’re ready, don’t forget to make your changes live by clicking on the Update or Publish button at the top of the screen. 

That’s it! You have now successfully added your ebook download into a WordPress post. You can now visit your website to see it in action. 

Note: Want your visitors to be able to search for your ebook’s contents on your website? WordPress doesn’t do this by default, so we wrote a guide on how to add PDF indexing and search in WordPress.

Method 2. Use Ebook Downloads to Get More Subscribers

Uploading your ebook using the File block is an easy way to offer great content for free.

However, if you’re using your ebook to grow your email list or capture leads, then you’ll want to make sure your visitors can’t access the ebook until they share their email address.

To set that up, you’ll need OptinMonster. It’s the best lead generation plugin for WordPress.

Using this plugin, you can create high-converting opt in forms without hiring a developer. We use it on WPBeginner and have increased our conversions by over 600% with this plugin alone.

OptinMonster also comes with lots of ready-made templates that you can use to create high-converting popups.

OptinMonster's template library

You can use these popups to ask visitors to perform an action before sending them to the ebook download. This marketing technique is sometimes referred to as offering lead magnets.

Basically, you offer free bonus content to your visitors in return for a small action like signing up to your mailing list.

An ebook popup, created using OptinMonster

It’s a win win for both parties. You get a new lead or subscriber, and your users get a free ebook.

For detailed instructions, see our step by step guide on how to add content upgrades in WordPress.

Method 3. Sell Ebook Downloads in WordPress Using Easy Digital Downloads

There are lots of different ways to earn money from your WordPress website. One option is to sell digital products, such as ebooks.

To sell ebooks, you’ll need a plugin.

We recommend Easy Digital Downloads, one of the best eCommerce WordPress plugins. This beginner friendly plugin makes it super easy to sell any type of digital product including ebooks.

First, you’ll need to install and activate the Easy Digital Downloads plugin. You can follow our tutorial on how to install a WordPress plugin.

Upon activation, the first task is adding your ebook as a new product. To get started, head over to Downloads » Add New

On this page, type a name for your ebook into the ‘Enter download name here’ field. This will usually be the book’s title, but it can be anything that you want. 

Adding a download to Easy Digital Downloads

Next, type a description for your ebook into the main section of the post editor. This could be a sales pitch that you’ve written to promote your book, or you might use the book’s blurb or summary.

To help visitors discover your ebook, you may want to create some categories and tags. You can add this information in the Download Categories and Download Tags sections.

Creating categories and drafts in Easy Digital Downloads

After that, scroll down to the Download Prices section.

Here you can set a price for your ebook.

How to add ebooks in WordPress

Easy Digital Downloads also supports variable pricing. You might use variable pricing to sell other products alongside your ebook. For example, you could give customers the option to save money by preordering your next ebook at the same time.

If you want to offer variable pricing, then select the ‘Enable variable pricing’ checkbox. This adds a new section where you can set your different prices.

Creating variable pricing for an ebook in WordPress

Next, you need to upload your downloadable file. This is the ebook that your customers will purchase.

To do this, scroll to the Download Files section.

Easy Digital Download's download file settings

In the File Name field, type a name for your downloadable file. You can then click on Upload a file.

This will launch the WordPress media library where you can upload or select a book.

The final step is adding an eye-catching product image. This can help catch the visitor’s attention, and encourage them to buy your ebook.

For ebooks, you’ll typically want to use the book’s front cover as your product image. You can easily create a professional-looking cover using web design software such as Canva.

To add a product image, scroll to the Download Image section.

Adding a product image for your ebook in WordPress

You can then click on the ‘Set Download Image’ link. This launches the WordPress media library.

After choosing an image, there are some more settings that you may want to explore. However, this is all you need to do in order to create a downloadable ebook.

To see how your ebook will appear on your website, you can click on the Preview button. When you’re ready to publish your product, simply click on the Publish button.

By default, Easy Digital Downloads publishes your ebook as a new page. Your goal is to drive traffic to this webpage.

This might mean adding this product page to your website’s menu. You might also link to it from different areas of your website, such as a blog post or announcement bar.

To do this, you’ll need to know the product page’s URL. You’ll find this information just beneath the product’s title.

The download link for an Easy Digital Downloads product

Another option is adding the product’s Purchase Shortcode to a page, post, or widget.

This code creates a Purchase button. 

A Purchase Shortcode for a downloadable ebook in WordPress

Whenever a visitor clicks on this button, it’ll add the ebook to their shopping cart.

The Purchase button will then change to a Checkout button.

The Easy Digital Downloads checkout button

Clicking on this button will take the shopper to the Easy Digital Download checkout page. This makes the Purchase Shortcode a great way to encourage sales from any area of your website.

To add a Purchase button to any page, post, or widget, scroll to the ebook’s Download Settings section. You can then copy the Purchase Shortcode.

How to add ebook downloads in WordPress, using Easy Digital Downloads

For more details on how to place the shortcode, you can see our guide on how to add a shortcode in WordPress.

We hope this article helped you learn how to add ebook downloads in WordPress. You may also want to see our list of 9 best PDF plugins for WordPress, and how to create a landing page with 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 Ebook Downloads in WordPress first appeared on WPBeginner.


March 31, 2022 at 03:00PM