YAFLogo

mrskravitz
  • mrskravitz
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
13 years ago
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
  • imukai
  • 100% (Exalted)
  • YAF Commander
13 years ago
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
  • mrskravitz
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
13 years ago
Thank you 🙂
annotoole
13 years ago
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
imukai
  • imukai
  • 100% (Exalted)
  • YAF Commander
13 years ago
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
13 years ago
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
13 years ago
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
  • imukai
  • 100% (Exalted)
  • YAF Commander
13 years ago
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
  • JoeOuts
  • 97.4% (Exalted)
  • YAF Developer
13 years ago
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
  • simdual
  • 60.8% (Friendly)
  • YAF Forumling
13 years ago
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!