Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

HOWTO: let the viewer change the text size


 
Prev Previous Post   Next Post Next
  #1  
Old Feb 1, 2010, 12:50 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
HOWTO: let the viewer change the text size

Thanks to Andante - I stole this from her site

Here is a nifty little thing you can do to to allow your viewser change the size of the text on the fly.
Create a text widget and set the title as 'Change Text Size'. In the text area of the widget add
HTML Code:
<a href="javascript:void(0);" onclick="javascript:body.style.fontSize='.8em'"><span style="font-size: xx-small;">+</span></a>
<a href="javascript:void(0);" onclick="javascript:body.style.fontSize='1em'"><span style="font-size: x-small;">+</span></a>
<a href="javascript:void(0);" onclick="javascript:body.style.fontSize='1.2em'"><span style="font-size: small;">+</span></a>
<a href="javascript:void(0);" onclick="javascript:body.style.fontSize='1.4em'"><span style="font-size: large;">+</span></a>
<a href="javascript:void(0);" onclick="javascript:body.style.fontSize='1.6em'"><span style="font-size: x-large;">+</span></a>
You will now have a series of plus signs that the viewer can click to increase/decrease the text size
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: make a custom text style on post/page pakacil Center area post/pages 24 Jul 18, 2011 05:53 AM
change the default font for the main content text size erergyrater Center area post/pages 3 Dec 23, 2009 06:44 AM
[SOLVED] HEADLINE Box: Text - don't change font size shus Page & Category Menu Bars 2 Dec 17, 2009 11:07 PM
[SOLVED] Simple question: change post text size (bigger) runbei Atahualpa 3 Wordpress theme 2 Oct 12, 2009 09:08 AM
Hw 2 Change Sidebar first level font size text ? RVB92 Sidebars & Widgets 1 May 3, 2009 05:37 AM


All times are GMT -6. The time now is 02:58 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.