Resources     Blog  

  1. Home
  2. WordPress Tutorials
  3. How to Display Random Quotes in a WordPress Sidebar

How to Display Random Quotes in a WordPress Sidebar

Do you want to share inspirational quotes with your visitors in WordPress? Throughout history, many inspirational, motivational, and just plain awesome quotes have been created.

Some of these quotes help people make it through tough days, while others help motivate them to greatness. You can share your favorite random quotes in WordPress by using the Quotes Collection plugin.

This plugin allows you to display quotes on your sidebar. Visitors can rotate through them by clicking a button.

For example, if you have 3 quotes named quote 1, 2, and 3 and you are currently displaying quote 1, when the visitor presses the button, quote 2 will appear.

Why Display Quotes on Your WordPress Website?

Depending on the nature of your website, displaying quotes can fit in perfectly. There is a quote for almost any situation and if there isn’t, you can just make one of your own. The plugin allows you to manually enter any quote and author, but don’t abuse it.

For example, if you are posting “A person who never made a mistake never tried anything new” which is a famous Albert Einstein quote, do not put your name or the wrong person’s name as the author. This can take away your website’s credibility.

Keep in mind there is a large number of quotes where the author is unknown. In those situations, it is best to list the author as Anonymous. Make sure the quotes match the tone that your website is creating.

For instance, if your website is trying to motivate visitors, use a motivational quote.

Today, I will demonstrate how to add quotes to your WordPress sidebar using the Quotes Collection plugin. This plugin allows you to add a lot of quotes to your sidebars.

The default number of quotes is 20 and you can change that to fit your needs. This plugin is very easy to use and should be a very quick process.

Let’s take a closer look at the plugin before we add it to your site together.

Quotes Collection

Quotes Collection

Quotes Collection is a plugin that can help easily collect, manage, and display all your favorite quotes directly on your WordPress website. It is a very simple, yet powerful plugin that comes with a lot of features. Some of the main ones include:

  • A robust and easy to use interface
  • Sidebar widget for content and quotes
  • Gutenberg block compatible (adds two blocks)
  • Shortcodes
  • Template functions
  • Import/Exportability
  • Localization

Basically, you have a tool that will allow you to show all your favorite quotes across your WordPress site. Let’s get the plugin installed and running together.

How to Display Random Quotes in a WordPress Sidebar

Step 1: Install and Activate the Plugin

Let’s start off by clicking on Plugins and selecting the Add New option on the left-hand admin panel.

Add New random quotes plugin

Search for Quotes Collection in the available search box. This will pull up additional plugins that you may find helpful.

Search for Quotes Collection in the available search box.

Scroll down until you find the Quotes Collection plugin and click the “Install Now” button and activate the plugin for use.

INstall the quotes collection random quotes plugin

Step 2: Access the Pugin Options Page

On the left-hand admin panel click on Quote Collection and select the Options option on the left-side menu area of the dashboard. This will pull up the main settings page. You will notice that this is now an available setting after the plugin has been activated.

click on Quote Collection and select the Options option.

Step 3: Configure the Plugin Settings

You can select the number of quotes in your rotation and give a name to the button to change the quote. There is also a checkbox that allows you to select quotes dynamically. You may need to check this box if your website’s caching plugin is interfering.

You will know if this needs to be checked if you can only see the same quote after you press the button. Come back to change this after you set up the rest of the plugin if needed. Click on the “Update Options” button to save your work.

Configure the random quotes plugin settings

Step 4: Click on the Add New Tab

Click on the Add New tab. This is where you can add the quote. Everything is entered manually, so make sure you are spelling the quote and name correctly. You must check the Public checkbox or the quote will be saved as a draft.

Once you have entered the quote and author click on the “Add Quote” button. Repeat this step to add as many quotes as necessary.

Click on the "Add Quote" button.

Step 5: View All Quotes

Click on the “All Quotes” tab. You can see every quote you have created here. If you need to Edit or Delete the quote, click on the appropriate button.

If you need to Edit or Delete the quote, click on the appropriate button.

Step 6: Go to the Widget Section of the Dashboard

It’s now time to start displaying your quotes. On the left-hand admin panel, click on Appearance and select the Widgets option.

Click on Appearance and select the Widgets option.

Step 7: Drag Widget to Desired Area

Locate the Random Quotes widget and drag it to your sidebars. You may also drag it to a different location if you don’t want them in your sidebar. You can change the name from Random Quote to “Quotes of the week” or something similar if you wish. Click on the “Save” button.

Click on the "Save" button.

Your quotes should now be displayed on your website. Another way to display your quotes is by using shortcodes. Here is a quick list of the shortcodes you can use.

Available Shortcodes

The following shortcode will pull up all quotes with the author name, Albert Einstein. Replace Albert Einstein with an author of your choice: 

[quotcoll author=”Albert Einstein”]

The following shortcode will pull up all quotes with the Motivational tag. Replace Motivational with a tag of your choice. If you want to use multiple tags, separate them with a comma: 

[quotcoll tags=”Motivational”]

For a full list of the plugin’s shortcodes, visit the plugin’s page.

Congratulations, you have successfully added quotes to your website. If you run multiple websites you can use the Importing and Exporting tabs to move your quotes in between websites. Remember to look for typos, you may ruin someone’s favorite quote by mistake.

Motivate Your Visitors to Come Back

Visitors can visit a site for any reason. You may have released a new piece of content, feature, product, or service, but sometimes visitors will come back for something else. Your quotes could be that something else.

Reading a motivational or inspirational quote can help someone make it through a tough day. Your visitors will appreciate your website if it provides good quotes.

These quotes will blend in really nice if you write blogs about life events. You may also wish to pull your own quotes out of your content to display. Placing your quotes next to well-known individuals like Albert Einstein will make you look better as a content creator.

Just make sure you don’t give credit to the wrong person.

Final Thoughts

Adding your favorite quotes to a WordPress site can make your site more personable and give users a deeper look at who you are and what your site is all about. It can also act as a calming factor for site users, as there might be a good chance they enjoy some of the quotes being displayed.

I hope this tutorial was able to show you how easy it is to add random quotes to your WordPress site. With a smooth, simple to use plugin like Quotes Collection, the entire process is fairly easy and quick.

What is your favorite quote of all time? Do you think your visitors will appreciate seeing famous quotes when they visit?

Author: Ron Helms

I currently work for GreenGeeks as a Support Technician. My primary roles are supporting our VPS and Dedicated server clients, as well as performing site migrations. With experience in the web hosting industry since 2009, there is rarely a question I can’t help answer. In my spare time, I enjoy gaming and working on cars as an automotive enthusiast.

Was this article helpful?

Related Articles

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.