WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WordPress Font Size

Adds BODY classes to allow CSS customize the size of various fonts, and layouts of a page. Uses AJAX to store state in session.

Where is the admin screen?

There is none. The only configuration can be done by adding the below constants to your wp-config.php file. You'll need to author your CSS to take advantage of the stateful classes added to the element.

How do I customize the number of levels?

Add the following constants to your wp-config.php file, adjusting the levels to your liking.

define('WP_FONTSIZE_MAX', 7);
define('WP_FONTSIZE_DEFAULT', 3);
define('WP_FONTSIZE_MIN', 1);

How do I disable the including of the CSS?

This disables the CSS that lays out the font size indicator in the top right of the screen. Use this to override the CSS with your own styles.

define('WP_FONTSIZE_CSS', false);

How do I use the font size adjustor in my template?

This lets you use the plugin inside a template, by using the wp_fontsize::html() method. This will display the interface using the tag:

<?php wp_fontsize::html(); ?>

To disable the default html adjustor, make sure you add this to your wp-config.php:

define('WP_FONTSIZE_HTML', false);

Requires: 3.0.0 or higher
Compatible up to: 3.6.0
Last Updated: 2013-6-5
Downloads: 15,167

Ratings

3 stars
3.6 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,1,1
0,1,0 100,1,1 100,1,1
100,1,1 100,2,2
100,1,1