|
#1
Apr 4, 2010, 09:20 PM
|
|
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
Last edited by treeplant; Apr 4, 2010 at 09:27 PM.
Reason: left out
|
#2
Apr 5, 2010, 07: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
|
#3
Apr 5, 2010, 08:30 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#4
Apr 5, 2010, 08: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
|
#5
Apr 5, 2010, 08:37 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
visual editor is a WORDPRESS component and the theme has nothing to do with it. You could post a question on wordpress.org
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#6
Apr 5, 2010, 08:48 AM
|
|
Will try that.
Thanks!
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Linear Mode
|
|