Why is it that when I publish a post it will show as one type font in the window where I am editing the post but when I publish it, it shows up as another font and usually a different size as well?
This has been the case for over a year that I have been using Serendipity.
I have to change the font for the entire post to a different type than I want then change it back. Example: I use Verdana for all my articles. I have to change the font to something like Times New Roman (most any font type will work) then change it back to verdana for it to actually display that way. Same thing for the size of the font.
Any ideas?
Wrong fonts displayed
Wrong fonts displayed
www.thatpoliticalblog.com
Calling illegal aliens immigrants is like calling a burglar a house guest.
Calling illegal aliens immigrants is like calling a burglar a house guest.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Wrong fonts displayed
Hi!
That depends on the template you're using. The serendipity backend tries to enable the CSS of your frontend for entries, but the CSS of the frontend might not be optimized for the backend HTML structure that it's used in. Only the "preview" can use a similar HTML layout through the preview_iframe.tpl structure.
Generally, it's next to impossible (technically) to make the same CSS apply to the WYSIWYG editor content than the one you see in the frontend. There are always differences and the HTML structure of backend and frontend do not 100% line up.
Usually, you should NEVER change the font within the WYSIWYG editor. Instead, change the style.css stylesheet of your frontend.
Regards,
Garvin
That depends on the template you're using. The serendipity backend tries to enable the CSS of your frontend for entries, but the CSS of the frontend might not be optimized for the backend HTML structure that it's used in. Only the "preview" can use a similar HTML layout through the preview_iframe.tpl structure.
Generally, it's next to impossible (technically) to make the same CSS apply to the WYSIWYG editor content than the one you see in the frontend. There are always differences and the HTML structure of backend and frontend do not 100% line up.
Usually, you should NEVER change the font within the WYSIWYG editor. Instead, change the style.css stylesheet of your frontend.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
I am using the latest version of Bulletproof and even being an IT type I am not a coder.
I tried a number of different templates before Bulletproof and yes the results were very different from one template to another.
I dont think I understand why you say I shouldnt change the fonts in the WYSIWYG editor before publishing.
I tried a number of different templates before Bulletproof and yes the results were very different from one template to another.
I dont think I understand why you say I shouldnt change the fonts in the WYSIWYG editor before publishing.
www.thatpoliticalblog.com
Calling illegal aliens immigrants is like calling a burglar a house guest.
Calling illegal aliens immigrants is like calling a burglar a house guest.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
If you want to affect your default font in the frontend, the WYSIWYG editor is not the right choice, because it always uses the default front you specified in the style.css file.
If you want your fonts to be the same, you must edit the CSS style.css file and change the default fonts there. Then they'll also apply to your WYSIWYG editor by default.
A comparison: Let's say you have a blue car, but you want to drive a black car. You could use waterpaint every day to paint your blue car black, but then you'd have to do that day by day. Instead, you should take your car to the body workshop and change its coating to black. Then you'll never have to use waterpaint again, and never need to complain about the blood, sweat and tears it takes to paint the car every day.
Regards,
Garvin
If you want to affect your default font in the frontend, the WYSIWYG editor is not the right choice, because it always uses the default front you specified in the style.css file.
If you want your fonts to be the same, you must edit the CSS style.css file and change the default fonts there. Then they'll also apply to your WYSIWYG editor by default.
A comparison: Let's say you have a blue car, but you want to drive a black car. You could use waterpaint every day to paint your blue car black, but then you'd have to do that day by day. Instead, you should take your car to the body workshop and change its coating to black. Then you'll never have to use waterpaint again, and never need to complain about the blood, sweat and tears it takes to paint the car every day.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Then why is the option to choose fonts even available in the WYSIWYG editor if it is not meant for that? So far almost every problem I have had is related to using that editor and requires editing of some template. Do you really expect regular users to be editing templates that much?
www.thatpoliticalblog.com
Calling illegal aliens immigrants is like calling a burglar a house guest.
Calling illegal aliens immigrants is like calling a burglar a house guest.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Regards,
Garvin
For *occasional* color changes. Not for those, you do everytime.RJH wrote:Then why is the option to choose fonts even available in the WYSIWYG editor if it is not meant for that?
If things are menat to appear regularly, templates are the place to go. Yes. I think this is only done once in the setup phase of the look of your blog. In fact, it's much less trouble than changing colors and fonts everytime for every single posting.So far almost every problem I have had is related to using that editor and requires editing of some template. Do you really expect regular users to be editing templates that much?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/