
Quote display
About
With this lightweight plugin you can display a random quote at your website.
To display your quote you can use a block or a shortcode.
You can customize your quote display with attributes.
How to use
After installation go to menu item “Quotes”. You can add your quotes here. The title field should be the quote author.
You can organize your quotes with categories. If you’re not using categories, you can disable the categories column via Settings > Writing.
Add the Display a Quote block or the shortcode [daquote]
to a page to display your random quote.
You can customize your quote display with attributes.
It’s also possible to add an image to your quote.
When using the block editor, use the Media & Text block. Or the Image block, if there’s no quote text to be added.
When using the classic editor, add the image with the “Add media” button next to the quote text and align it the way you want.
Attributes
You can customize your quote display by adding attributes to the block or the shortcode.
- Display quotes from a certain category:
quote_cat="your-category-slug"
- Display quotes from multiple categories:
quote_cat="first-category-slug, second-category-slug"
- Disable quote author:
quote_author="false"
- Change the “no quotes are found” text:
no_quotes_text="your text"
Example: [daquote quote_cat="your-category-slug" quote_author="false"]
When using the block, don’t add the main shortcode tag or the brackets.
Example: quote_cat="your-category-slug" quote_author="false"
Translation
Translations are not included, but the plugin supports WordPress language packs.
More translations are very welcome!
The translation folder inside this plugin is redundant, but kept for reference.
Credits
Without help and support from the WordPress community I was not able to develop this plugin, so thank you!