mrskravitz
2009-05-07T04:18:56Z
The standard font size is too small. How do we go in and make it bigger so that we don't have to do it manually on every post we each write?
Sponsor
imukai
2009-05-07T04:35:09Z
Go into the /themes folder, then into the subfolder of the theme that you are using, then open theme.css

Look for:

/* font sizes */
.yafnet .smallfont	{ font-size: 7.5pt; }
.yafnet .largefont	{ font-size: 9pt; }
I believe modifying those will have the effect you're looking for.

If it's just the body text of the posts you want to alter, look for:

.yafnet div.postdiv {
	width: 100%;
	min-height: 100px;
	overflow: auto;	
}
and add in a font-size declaration. Think that'll work.
mrskravitz
2009-05-07T04:36:36Z
Thank you 🙂
annotoole
2009-07-16T00:52:24Z
That solution had no effect.

In the post editor there is a drop down for font size. It is by default at 5. How to change the default to 6?
annotoole
2009-07-19T19:06:07Z
imukai
2009-07-20T06:00:16Z
Actually, it does work. At least it does for 1.9.3. Keep in mind your browser caches css files, so you might have to force it to refresh (Ctrl-F5) after making a change to the css. Also keep in mind if you don't edit the correct css file for the correct theme that you are using, you won't see the change.

Also keep in mind the post editor you are using to write your posts might not have been written by the YAF programmers, so changing the behavior within the post editor you are using (for example, to change the "default" from 5 to 6) might be out of scope for this forum's community but rather the authors of the specific post editor. YAF provides the ability to work with many editors, so maybe you should switch to one that provides the functionality you are seeking.

In this post, someone asked how to easily change the displayed font sizes, and my answer stands. At least, for the current version (1.9.3).

If you can't get it to work, provide some more details as to what version you're using, what theme you're using, and a link to your forum so we can see that you actually made the change correctly.
logan
  •  logan
  • 100% (Exalted)
  • YAF Leader
2009-07-20T14:31:25Z
Version 1.9.1.8
Not wrapped in yafnet class, just use

div.postdiv{
font-size:16px
}
This is at the very bottom of the theme.css file

The select dropdown for the font size only wraps the default font

with a modifier to increase or decrease the default font size.
test
annotoole
2009-07-21T03:03:41Z
I'm still hammering away at it. I went up the ladder from software engineer a long time ago but this project has me thinking about getting back into it lol.

The original fix in the theme.css mentioned above did affect the last post column in the post listings but did not affect the font size in the actual posts. The theme involved is so clean.

The adding a div.postdiv solution worked. Perhaps this was missing in the so clean theme?

Many thanks for all the help!

Oh yea I'm stuck on godaddy for another few months. The general solution for godaddy hosted problems is to move off of godaddy. I'll be doing that in a few months. The weird "we install this software for you to use but we don't support it nor do we give you the access privs you need to maintain it. Use it as is or blow" attitude/policy.
imukai
2009-07-21T05:18:09Z
Glad it worked. Makes more sense now to say your theme didn't have the declaration to begin with than to just blanket say it doesn't work. :cry:
JoeOuts
2009-07-21T09:17:07Z
For godaddy users (I am one of them) it is easier to download the latest version (YAF 1.9.3) and publish it yourself.
Hopefully godaddy will upgrade to the latest code install at some point.
KASL Technologies  - Specializing in Custom Web Application Development
simdual
2009-08-25T10:52:28Z
imukai wrote:

Go into the /themes folder, then into the subfolder of the theme that you are using, then open theme.css

Look for:

/* font sizes */
.yafnet .smallfont	{ font-size: 7.5pt; }
.yafnet .largefont	{ font-size: 9pt; }
I believe modifying those will have the effect you're looking for.

If it's just the body text of the posts you want to alter, look for:

.yafnet div.postdiv {
	width: 100%;
	min-height: 100px;
	overflow: auto;	
}
and add in a font-size declaration. Think that'll work.



It worked to me adjusting the second part:
.yafnet div.postdiv {
	width: 100%;
	min-height: 100px;
	overflow: auto;
        font-size: 10pt;
}

Thanks!

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved