Recent Topics

FONT-FAMILY IN POST

Started by on Feb 26, 2008 – Contents updated: Feb 26, 2008

Feb 26, 2008 00:50    

Hi,
I would like to know if it already exists, and if it doesn't, I'd like to request that it be made. I'm looking to be able to change the font-family or style in my posts. For example changing the text to Helvetica, Arial, Trebuchet, Serif, Times New Roman, etc.

Thank you

Feb 26, 2008 01:24

Well, you could look at this plugin...
http://plugins.b2evolution.net/index.php/2006/11/15/tinymce
or an external writer as detailed here...
http://forums.b2evolution.net/viewtopic.php?t=13890

or you could simply add some p styles to your style sheet.
eg: <p class="times>yadda yadda</p>
an inn your CSS have...
p.times{font-family:Times New Roman;}
p.arial{font-family:Arial;}
etc etc

Specific buttons could be added to EdB's More Buttons plugin ...
http://plugins.b2evolution.net/index.php/2008/01/04/moretags

Feb 26, 2008 02:12

I'm not too great at changing code. And this blogsite is located on my website and one other person uses it. How would I be able to add fonts as in like Arial, Times New Roman, etc, or would you have step by step instructions on how to add those buttons? btw, thanks for the speedy reply, :)

Feb 26, 2008 02:19

@ justincsecs
Well don't hang by your toenails waiting but I will have a look at editing EdB's plugin and adding some p classes for font styles.
I'll post back here when and if I have something for you :)

Feb 26, 2008 02:29

Using moretags it'd be easy. Just set one of the three customizable divs to font-family:whatever; then after writing the post select the entire thing and click the appropriate div button. No need to edit it to make a special "p class" button eh?

Feb 26, 2008 02:31

BTW this assumes you're using 2.4.0, or at least 2.something. I've no idea if it'll work on older versions of b2evo. Maybe, but I never tested it so don't know.

Feb 26, 2008 02:38

"John" wrote:

@ justincsecs
Well don't hang by your toenails waiting but I will have a look at editing EdB's plugin and adding some p classes for font styles.
I'll post back here when and if I have something for you :)

Thanks John :)

Feb 27, 2008 16:11

@ justincsecs
First Draft only... fonts rendered within p tags are Arial, Verdana, Serif, Georgia, Trebuchet, Helvetica and Times New Roman.

Yell if you want fonts added or removed or if you have any problems as it's a quick and dirty bit of work.
Download the zip file, unpack it and simply upload the fontfamily_plugin folder to the plugin directory . Install it as a new plugin. It will give you yet another toolbar.
Write your text, highlight it and click the font button you want.
FontFamily zip file: [URL=http://wow-factor.com/misc/fontfamily_plugin.zip]Here[/URL]

I suggest you use this in conjunction with EdB's MoreTags plugin as that gives you some neat font color and font size options etc etc
http://plugins.b2evolution.net/index.php/2008/01/04/moretags

Feb 28, 2008 09:10

amazing, I would Love to learn how to do that... Thank you very much John... I have a few things more to ask, but I'll PM you with those .. Thank you.

Feb 28, 2008 10:28

Justin, the zip file has been updated with your additional font request.
Any issues, just post here.

Cheers
John


Form is loading...

Secure CMS – This forum is powered by b2evolution CMS, a complete engine for your website.