Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Wordpress - Making Additional Text Styles Accessible to User
Old 08-09-2010, 05:03 PM Wordpress - Making Additional Text Styles Accessible to User
jj1
Extreme Talker

Posts: 150
Trades: 0
Hi all

I've just finished my first Wordpress site but was wondering: how do I get additional text styles that I define in style.css to appear in the drop-down text-style Format menu that users see by default when they edit their content (the one that allows them to select whether they want given text to appear as h1, h2, p etc)? For example, Ive defined the following text style in my style.css sheet but have no idea how to get it to appear in this drop-down menu:

Quote:
.blue {
margin: 16px 0;
font-size: medium;
colour: #000066;
font-family: Arial, Helvetica, sans-serif;
}
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
jj1 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-09-2010, 08:51 PM Re: Wordpress - Making Additional Text Styles Accessible to User
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
There really isn't a hook for that since the javscript files aren't dynamic. You'd need to edit the javascript directly for the editor itself which is in wp-includes/js/tinymce. However, you really never want to edit core files since this would be overwritten on each upgrade.

You may want to try this plugin. It says it is only compatible up to 2.8.5 but I have just recently installed it on a 3.1 and it works fine so far. This allows much more control over the styling.

Of course, the other option is to switch to HTML view and just insert the html such as
Code:
<p class="blue-text>blah blah</p>

Last edited by racer x; 08-09-2010 at 08:54 PM..
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Old 08-12-2010, 03:24 AM Re: Wordpress - Making Additional Text Styles Accessible to User
jj1
Extreme Talker

Posts: 150
Trades: 0
Many thanks racer x. Will look at the plug-in.

Quote:
Of course, the other option is to switch to HTML view and just insert the html such as
I want to set-up Wordpress so that the customers can select any text they choose (on additional pages that they add) and get the right style so this isn't really an option.

The reason I need it is that - for some reason - any changes I make to the p style in the style.css do not reflect int he website - change I make in other styles such as h1 do. I don't know if this is due to the theme (omniblock) or whether it is a general quirk of Wordpress??
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by jj1; 08-12-2010 at 06:17 AM..
jj1 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Wordpress - Making Additional Text Styles Accessible to User
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.76384 seconds with 12 queries