Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   How to ad a font style to CSS Inserts? Will it show up in visual editor font pop up? (http://forum.bytesforall.com/showthread.php?t=6599)

treeplant Apr 4, 2010 08:20 PM

How to ad a font style to CSS Inserts? Will it show in visual editor font drop down?
 
I want to add new font styles into the 'CSS inserts' so I can then use them in a page or post. Nothing I put in the 'CSS insert' shows up in the visual editor font drop down menu.

Can you explain this?

What would be the exact format, to make these two examples:

body text
Lucinda Grand
14 pix
bold, italic
color #FF8000

heading text
Times
18 pix
bold
color #FF0080

then put it in the 'CSS insets', and then have it available in the visual editor font pop up.

I just need some exact sample I can try out so that I can see how it works.

Thanks

treeplant Apr 5, 2010 06:47 AM

Here's what I figured out so far. In CSS Inserts I entered:

v1 {
font-style: normal;
font-weight: normal;
color: #333333;
font-size: 1.1em;
font-family: verdana, sans-serif;
}

This gives me a Verdana 14 point style. Perfect.

I don't see this available in the Visual Drop Down menu.
Perhaps that's not possible?

So, In my page-post, in HTML editor I manually code:

<v1>text goes here</v1>

This works, but if I change the view back to 'Visual', the code disappears.
<h1>text goes here</h1> works ok, but not my replacement 'v1'
(This is probably that WordPress formatting bug that drives everyone crazy?)

Or perhaps I am doing something wrong?

I was able to put the <v1> & </v1> code into a 'Custom Field' with a reference to the
code as [HTML1] etc (using a plugin to do this)

This works, but it's a pain to do for every page-post

I would RATHER be able to make this:
v1 {
font-style: normal;
font-weight: normal;
color: #333333;
font-size: 1.1em;
font-family: verdana, sans-serif;
}

the default setting for page-posts text, but I don't know where to do that.
I've tried every ATA place I could find, and the only one that works also changes the widget
styles and post Title and other stuff that I don't want.

So

1. How do I make this the default

2. Am I doing the CSS Insert correctly?
Is there another way around the disappearing code in the Visual Editor?

3. Is it possible to get additional style to show in the Visual Editor?

Thanks,
Norm

juggledad Apr 5, 2010 07:30 AM

the visual editor is a WORDPRESS feature, and has nothing to do with the theme.

the fonts that are going to be available are the fonts that are installed on YOUR maching. This is why it is very important to use multiple FONT-FAMILY so if I don't have the first font you chose, I'll use the second (if I have that) the last should always be a websafe font

do a google search on 'css font-family'

treeplant Apr 5, 2010 07:33 AM

Yes I understand that. Verdana is on both Mac & PC. I can add fallback fonts.
That was just an example.
It doesn't matter what I enter, nothing shows up in the Drop Down menu.

But the questions really has nothing to do with that.
Any answers to the questions?

Thanks,
Norm

juggledad Apr 5, 2010 07:37 AM

visual editor is a WORDPRESS component and the theme has nothing to do with it. You could post a question on wordpress.org

treeplant Apr 5, 2010 07:48 AM

Will try that.
Thanks!


All times are GMT -6. The time now is 03:04 PM.

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