Jump to content
xisto Community
Sign in to follow this  
shigajet

Changing Font Sizes On Wordpress

Recommended Posts

I brought up this question in another thread, but I'd like to know how you can allow the user to change font sizes on a blog. An example of this can be found on this site. What files would I need to edit - header.php, style.css?

If you can help me out on this one, feel free to shout out.

Share this post


Link to post
Share on other sites

Shigajet,
On the top right hand corner of the site you link to, there are three square buttons, small 'a', medium 'a', and a large 'a'. Clicking these buttons by a user will alter the size of the font for their display. And I think this piece of code which I found by doing a view source is the html for those links, so find the classes in one of the stylesheets and change the font-size to whatever you want it to be.

<div id="fontcontrol">	<h3 class="hidden">Adjust font size:</h3>	<ul>		<li class="font1"><a href="#" onclick="setActiveStyleSheet('Small');return false;" title="Small"><i>Small</i></a></li>		<li class="font2"><a href="#" onclick="setActiveStyleSheet('Medium');return false;" title="Medium"><i>Medium</i></a></li>		<li class="font3"><a href="#" onclick="setActiveStyleSheet('Large');return false;" title="Large"><i>Large</i></a></li>	</ul></div>

Share this post


Link to post
Share on other sites

i remember i had problems with wordpress font size... i changed what i thought i should to smaller fonts, but it wouldnt change my font size on that page. It was realy wierd, anyway i think this could solve your problem, what jlhaslip told you.btw i realy like your blog style :huh:

Share this post


Link to post
Share on other sites

try downloading another theme that has bigger fonts and then check the css and lookk for the size. If it doesnt work try seeing the php pages for some reference....i had to do so sometimes with the goolge ads...so it would be bad to check some code...

Share this post


Link to post
Share on other sites

Actually, the site I made a link to in my post is not my own blog, as I'm using WordPress, not Nucleus (although one could almost say they have a lot of similarities). Still, thanks for the code - and the term as well - and I'll see how it turns out.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.