How to Display Random Quotes in Your WordPress Sidebar 1

How to Display Random Quotes in Your WordPress Sidebar

Quotes are a perfect example of how powerful words can be. Used correctly, they can be those little details that make a big difference and keep the user coming back. Sometimes their strength lies in the perfect combination of words, and other times it’s whoever said those words that creates the impact. find A quote that perfectly reflects the idea behind your website is a great way to add value to your brand. and create the atmosphere you want on your pages.

Apart from the widespread use of citations in articles, the sidebar can also be a great location for quotes. You can choose a strong quote or pick a few that you think resonate the most with you and set them to show randomly in your sidebar. this way you provide a richer user experiencevisitors feel that there is more to your website and are interested in exploring your pages.

This is exactly what we want to talk about and show you in this article. how to easily view random quotes. We’re sure you can find great ideas on how to use quotes effectively on your website, and we’ll show you that in this article. how to display random excerpts in your sidebar or on your post/page with a plugin?. Read on to find out:

Using a Plugin to Display Random Quotes

Nail Collection It is a great free plugin trusted by over 10,000 active users. This is a robust and easy-to-use tool with star ratingsenabling you to View and collect citations on your WordPress website. With this plugin, you can show quotes in any available widget area.

The main advantage of the Quotes Collection plugin is that it allows you to create your own collection of quotes. and provide a more personalized user experience, most other plugins of this type usually allow you to view quotes from popular citation websites. The thing is, Citations added to your website from another website usually link back to that other website it does nothing to you, and it can also drive your target audience away from your pages.

Installing the Citations Collection Plugin

The Citations Collection plugin installs like any other WordPress plugin, so we won’t go into the setup details. If you need help, be sure to check out our tutorial on how to install a WordPress plugin.

After installation, you will see the new Quotes Collection tab in your WordPress admin panel menu.

Nail Collection

Building Your Offer Collection

Before you set everything up to randomly display citations on your site, you should actually create a collection of them. After choosing the quotes you believe will be most effective for your website, go to: Nail Collection » Add New page to add the quotes you want. Each excerpt will have its own “page” in the backend, much like product singles in a WooCommerce store.

Add New Offer

You will see several fields in the menu on this page. Enter the offer in the first field. The fields below are optional, you can enter the name of the quoting author, cite the source, and add a tag. this people box is checked by default, if you uncheck it, the offer will only be saved as a draft.

Repeat the procedure for each citation you want to add. We’ve added three quotes. To check how your collection looks, go to: All Quotes page. They will be arranged in the order you enter them:

All Quotes

This is also the page where you can do it. Edit / Delete your citations.

Setting Bid Collection Options

To adjust the plugin settings, go to: Nail Collection » Options page. Here you can set the number of iterations to load during the refresh. The last option, ‘Dynamicly fetch first random quote on widget’ will help you if your caching plugin is causing your website to display the same quote to visitors – if that happens, be sure to check this option. After making the settings, Update Options button.

Citation Collection Options

Displaying Random Quotes in Your WordPress Sidebar

The next step is to display random quotes on your website. In particular, today we are interested in displaying excerpts in the sidebar. The easiest and simplest way to do this is to use the plugin’s built-in widget and add it to the sidebar widget area.

go to Appearance » Widgets The page in your WordPress admin panel. Check the list of available widgets and you will notice the new Random Quote widget. Now all you have to do is drag and drop the widget into the sidebar where you want to display your quotes.

Random Quote Widget

But before you do, you may want to change the title that will appear above the excerpt. Default title Title field is “Random Quotes”. Just enter the title you want. In our case we changed it to “Daily Inspirational Dose”:

Random Quote Title

There are more settings you may want to adjust. For example, the default setting is to randomly show widgets, but you can also change this if you want. Click Advanced options To access more detailed settings:

Random Quote Advanced

For example, you can set your own refresh time so that a different offer is displayed every 5 seconds. Here you can set it whenever you want.

If you’ve entered quote tags, you can also set the tag filter to display only inspirational quotes or other tags you’ve created. After making all the settings, do not forget to click. Completed.

Now you can control how quotes appear in your sidebar.

Sidebar Quote Live Preview

As we mentioned, you can add quotes as widgets to any widget area on your pages. This is what it looks like when added to the footer area:

Quote Live Preview Footer

Displaying Quotes on Pages and Posts

If you want to display your random quotes on the page itself or in a post, you can do so using a shortcode you get with the plugin.

All you have to do is add this shortcode to a post or page where you want the offer to be displayed:

[quotcoll]

Note that citations added this way will be displayed as a flat list.

Submit Quote

However, there is a way to set quotes to repeat randomly, by setting certain parameters in the shortcode. So, to display a random quote that will automatically refresh every five seconds, use:

[quotcoll ajax_refresh=true]

There are several parameters you can use to control how excerpts are displayed on the post/page.

For example, the shortcode:

[quotcoll tags="inspirational,motivational,life"]

will display quotes tagged with “inspirational”, “motivating” and “life” tags.

To see the full list of possible parameters, visit: the plugin’s documentation page.

Adding Quotes as Blocks in the Block Editor

The plugin also adds two blocks to the Block Editor:

Nail Blocks

Once you decide on a post or page where you want to add your quotes, you will have two options. You can add it to the post by adding a list of all the quotes to the post. Quoting block or if you want the quotes to randomly repeat, random quote block the post and all quotes in your quote collection will be repeated every five seconds.

Wrapping Everything

Thanks to the Citations Collection plugin, Now you can have your own set of quotes randomly displayed on your pages without backlinking to other websites.. This collection can be anything from a few quotes to dozens of quotes, as long as you make sure it works to your advantage. Adding inspirational quotes to a website and social media has been a big trend for a long time, so you should be careful when choosing quotes to display on your pages. Make sure they truly reflect your values ​​and are not overused. or it may be the opposite of the intended effect.

Support our work ❤️

If you enjoyed this article, consider leaving a tip to help us keep publishing great content.

Secure payment on PayPal
Moyens I/O Staff is a team of expert writers passionate about technology, innovation, and digital trends. With strong expertise in AI, mobile apps, gaming, and digital culture, we produce accurate, verified, and valuable content. Our mission: to provide reliable and clear information to help you navigate the ever-evolving digital world. Discover what our readers say on Trustpilot.