A simple widget to display random quotes on your WordPress site.
IMPORTANT UPDATE NOTE: For all users who are currently using this plugin, after updating you should go to Appearance > Widgets and to the settings for c3 Random Quotes, and simply click on the Save button without changing a thing. This will insure your settings are properly saved and will display on your site correctly. Without doing this step your quotes will not display properly until you Save your settings.
c3 Random Quotes displays a random quote each time your site (or page that displays the sidebar in which this widget is assigned to) is loaded.
You create and maintain the list of quotes in a private page on your WordPress site.
Quotes can be anything including customer comments.
It’s easily installed, features a few settings to adjust the appearance to your site template, and can be used in a sidebar, header, or footer depending on how your WordPress template is laid out.
Hat tip to Scott Ball, creator of the Super Simple Random Quotes plugin, from which this was inspired.
Now requires PHP Version 7.3
Each quote in the ‘Quotes For Widget’ page is made up of 3 elements; the text of the quote, a delimiter character, and who the quote is attributed to, or author.
Each quote must be a line (or paragraph) of text unto itself and not combined with other quotes.
The delimiter, or divider, between the quote and it’s attribution/author is the character ‘#’. Don’t change the delimiter or use the ‘#’ character in the text of a quote as this will break the widget.
Take care not to leave any blank lines at the very top or bottom of the ‘Quotes For Widget’ page which may result in breaking the widget.
The widget settings screen.
A quote displayed in a page header showing the white, leading quotation mark image.
A quote displayed in a page header showing the leading quotation mark as part of the quotation text.
A quote displayed in a sidebar showing the leading quotation mark as part of the quotation text.
There are many good resources available online that discuss this very thing. Search for ‘WordPress add a template widget area’ to see several. Be warned this will require some code editing in your template files. If you’re not comfortable with this consider hiring a web designer to do this.
It is if you have a graphics editing application that can edit PNG files, such as Adobe Photoshop or Illustrator. If you do simply follow these steps:
1. Download and install the font used (unless you want to use a different font) from here: Bard.ttf
2. Once you have the font installed, make a copy of the quote-white.png, and open in your application.
3. With the text edit tool, select the quotation mark and adjust the font color to what ever you prefer.
4. Save your the image, and upload to the images folder in the c3randomquotes folder in your WordPress plugins folder.
5. Go to the widget settings and select ‘white’ for the quotation mark image and Save your settings.
The Abe Lincoln cats quote is the default that is displayed when the plugin isn’t finding your quotes page. There are 3 critical elements to the quotes page and if either of them are not exactly right the plugin will not find your quotes.
1. Make sure your quotes are in a PAGE and not a POST.
2. Make sure your page Visibility is set to PRIVATE
3. Make sure the title of your quotes page is exactly ‘Quotes For Widget’ (without the quotes) and there are no extra spaces at the end.
It’s been discovered some language translation plugins actually modify the page title by adding language tags at the beginning and end. Unfortunately if you use these plugins you will not have the option to disable this and the result is your quotes page will not be found by the plugin. I do have a work around for it that may or may not be added to future updates. Until then please contact me directly for the solution.
Initial release