Changeset 1553753
- Timestamp:
- 12/13/2016 02:35:22 PM (9 years ago)
- Location:
- font-resizer/trunk
- Files:
-
- 2 edited
-
font-resizer.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
font-resizer/trunk/font-resizer.php
r1343570 r1553753 5 5 Description: Font Resizer with jQuery and Cookies 6 6 Author: cubetech.ch 7 Version: 1.3. 27 Version: 1.3.3 8 8 Author URI: http://www.cubetech.ch/ 9 9 */ … … 109 109 110 110 function fontResizer_place(){ 111 echo '<ul ><li class="fontResizer" style="text-align: center; font-weight: bold;">';112 echo '<a class="fontResizer_minus " href="#" title="' . __('Decrease font size', 'font-resizer') . '" style="font-size: 0.7em;">A</a> ';113 echo '<a class="fontResizer_reset " href="#" title="' . __('Reset font size', 'font-resizer') . '">A</a> ';114 echo '<a class="fontResizer_add " href="#" title="' . __('Increase font size', 'font-resizer') . '" style="font-size: 1.2em;">A</a> ';111 echo '<ul class="ct-font-resizer"><li class="fontResizer ct-font-resizer-element" style="text-align: center; font-weight: bold;">'; 112 echo '<a class="fontResizer_minus ct-font-resizer-minus" href="#" title="' . __('Decrease font size', 'font-resizer') . '" style="font-size: 0.7em;">A</a> '; 113 echo '<a class="fontResizer_reset ct-font-resizer-reset" href="#" title="' . __('Reset font size', 'font-resizer') . '">A</a> '; 114 echo '<a class="fontResizer_add ct-font-resizer-plus" href="#" title="' . __('Increase font size', 'font-resizer') . '" style="font-size: 1.2em;">A</a> '; 115 115 echo '<input type="hidden" id="fontResizer_value" value="'.get_option('fontResizer').'" />'; 116 116 echo '<input type="hidden" id="fontResizer_ownid" value="'.get_option('fontResizer_ownid').'" />'; -
font-resizer/trunk/readme.txt
r1343570 r1553753 4 4 Tags: font, size, increase, decrease, resizer, bigger, smaller, jquery, cookie, fonts, resize, change, wordpress, cubetech, webdesign, hosting, billing, widget, plugin, sidebar 5 5 Requires at least: 2.7 6 Tested up to: 4. 57 Stable tag: 1.3. 26 Tested up to: 4.8 7 Stable tag: 1.3.3 8 8 License: GPLv2 9 9 … … 35 35 Go to the admin page of the plugin and select your option. If you are not familiar with html and css, select the body option (default). This would resize each content of your page. 36 36 37 = My fonts doesn't resize or only some lines are resizing. How can i fix? = 38 The problem is that many themes use fixed font sizes (px) instead of relative sizes (em, rem, vm, vh, %, ...). If you change this, it works. 39 37 40 = How can i use the plugin without the widget? = 38 41 Use this snippet of PHP code (in your theme or somewhere): <?php if(function_exists('fontResizer_place')) { fontResizer_place(); } ?> … … 41 44 With CSS in your theme. 42 45 Use something like: 43 li.fontResizer > a { color: blue; } 46 ul.ct-font-resizer li > a { color: blue; } 47 48 = Which styling (CSS) classes are available? = 49 UL : ct-font-resizer 50 LI : ct-font-resizer-element 51 A : ct-font-resizer-plus, ct-font-resizer-reset, ct-font-resizer-minus 44 52 45 53 = How to contribute? = 46 54 If you have an idea or a pull request, contribute here: 47 55 48 https://github.com/cubetech/w ordpress.font-resizer56 https://github.com/cubetech/wpplugin.font-resizer 49 57 50 58 = Are there more FAQ? =
Note: See TracChangeset
for help on using the changeset viewer.