{"id":19696,"date":"2012-08-29T17:33:19","date_gmt":"2012-08-29T17:33:19","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-fontsize\/"},"modified":"2013-06-05T06:56:50","modified_gmt":"2013-06-05T06:56:50","slug":"wp-fontsize","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-fontsize\/","author":5831445,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.7","stable_tag":"trunk","tested":"3.6.0","requires":"3.0.0","requires_php":"","requires_plugins":"","header_name":"WordPress FontSize Adjust","header_author":"Circle Tree, LLC","header_description":"","assets_banners_color":"","last_updated":"2013-06-05 06:56:50","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/mycircletree.com\/","header_author_uri":"http:\/\/mycircletree.com\/","rating":2.8,"author_block_rating":0,"active_installs":100,"downloads":19542,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":"2","2":0,"3":0,"4":"1","5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1538892","resolution":"1","location":"plugin"}},"screenshots":{"1":"Clicking on the fontsize button increments or decrements the font-size-{$number} applied to the body of the page"}},"plugin_section":[],"plugin_tags":[221,4852,69026,2801,2250],"plugin_category":[59],"plugin_contributors":[83576],"plugin_business_model":[],"class_list":["post-19696","plugin","type-plugin","status-closed","hentry","plugin_tags-ajax","plugin_tags-font-size","plugin_tags-font-size-adjust","plugin_tags-fontsize","plugin_tags-frontend","plugin_category-utilities-and-tools","plugin_contributors-bobbravo2","plugin_committers-bobbravo2"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-fontsize.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-fontsize\/trunk\/screenshot-1.png?rev=1538892","caption":"Clicking on the fontsize button increments or decrements the font-size-{$number} applied to the body of the page"}],"raw_content":"<!--section=description-->\n<p>This plugin does one thing: adds the HTML, JS, and CSS to the page (minified, of course) \nto add a font size adjust to the top right of the viewport. Adds a class to the body HTML element to allow your CSS to make all the layout\nand font size changes your heart desires!<\/p>\n\n<p><strong>How it works<\/strong><\/p>\n\n<ol>\n<li>Click on the fontsize buttons<\/li>\n<li>AJAX Request to validate &amp; save the new size<\/li>\n<li>jQuery Changes the body class for instant results<\/li>\n<li>Subsequent page navigation maintains the size without any Flash of Wrong Sized Text (FOWST)<\/li>\n<\/ol>\n\n<!--section=installation-->\n<p><strong>Please Note<\/strong><\/p>\n\n<p>The default installation of this plugin will have no <em>visible<\/em> effect on your theme. \nYou must add css to specify the size of the font adjustments, this plugin only adds the\nbody class = font-size-{$number} to allow your CSS to do the tweaking.<\/p>\n\n<p>See the FAQ for configurable constants.<\/p>\n\n<p><strong>Demo CSS:<\/strong>\nThis will change the font size of all paragraph elements. \n    .font-size-1 p\n    {\n        font-size: 0.8em;\n    }\n    .font-size-2 p\n    {\n        font-size: 0.9em;\n    }\n    ...\n    other rules here\n    ...\n    .font-size-7 p\n    {\n        font-size: 1.7em;\n    }\nTo target other elements:<\/p>\n\n<pre><code>.font-size-7 p, .font-size-7 h1, .font-size-7 h2 .(etc...) {\n    font-size: 1.7em;\n}\n<\/code><\/pre>\n\n<!--section=faq-->\n<dl>\n<dt>Where is the admin screen?<\/dt>\n<dd><p>There is none. The only configuration can be done by adding the below constants to your wp-config.php file.\nYou'll need to author your CSS to take advantage of the stateful classes added to the  element.<\/p><\/dd>\n<dt>How do I customize the number of levels?<\/dt>\n<dd><p>Add the following constants to your wp-config.php file, adjusting the levels to your liking.<\/p>\n\n<pre><code>define('WP_FONTSIZE_MAX', 7);\ndefine('WP_FONTSIZE_DEFAULT', 3);\ndefine('WP_FONTSIZE_MIN', 1);\n<\/code><\/pre><\/dd>\n<dt>How do I disable the including of the CSS?<\/dt>\n<dd><p>This disables the CSS that lays out the font size indicator in the top right of the screen. \nUse this to override the CSS with your own styles.<\/p>\n\n<pre><code>define('WP_FONTSIZE_CSS', false);\n<\/code><\/pre><\/dd>\n<dt>How do I use the font size adjustor in my template?<\/dt>\n<dd><p>This lets you use the plugin inside a template, by using the wp_fontsize::html() method. This will display the interface using the tag:<\/p>\n\n<pre><code>&lt;?php wp_fontsize::html(); ?&gt;\n<\/code><\/pre>\n\n<p>To disable the default html adjustor, make sure you add this to your wp-config.php:<\/p>\n\n<pre><code>define('WP_FONTSIZE_HTML', false);\n<\/code><\/pre><\/dd>\n\n<\/dl>","raw_excerpt":"Adds BODY classes to allow CSS customize the size of various fonts, and layouts of a page. Uses AJAX to store state in session.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/19696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=19696"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bobbravo2"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=19696"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=19696"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=19696"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=19696"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=19696"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=19696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}