Problems with typography.css

Permalink
Hi
I know typography.css applies to the styles that appear in the Tiny MCE editor but within the typography.css there are h4 and h5 tags which don't seem to appear in the format pull down. Am I missing something here?
Also I added some class styles to add custom styled elements, unfortunately in the latest version of Firefox on the mac they don't appear in the styles drop down but they work fine in Safari.

abovecreative
 
Remo replied on at Permalink Reply
Remo
the typography classes are only displayed as styles and not formats.

However, you can use a custom toolbar (dashboard - settings) to define your own formats..
uce2009 replied on at Permalink Reply
Hi, how would I define my own settings. Could you give a code sample please?
jordanlev replied on at Permalink Reply 1 Attachment
jordanlev
Log in to your site, and go to Dashboard -> Sitewide Settings. Scroll to the bottom and in the "Rich Text Editor" section, check the "Custom" option, then modify the "theme_concrete_blockformats" line of code by adding "h4, h5, h6," after the "h1, h2, h3" in the middle there (see attached screenshot).
uce2009 replied on at Permalink Reply
Hi, yes I do understand that. What I do not understand how to have your own styles displayed, like if I have for example a style called .video and not the common h1,h2 etc. How would I display .video in my customized settings?
I have tried

theme_concrete_blockformats : "p,h1,h2,h3,.video",

and

theme_concrete_blockformats : "p,h1,h2,h3,video",

but neither of them works.
jordanlev replied on at Permalink Reply
jordanlev
Those go in the typography.css file. For example, to add a video class, add this to typography.css:
.video {
   background-color: #FFF;
   /* etc. */
}


Note that it must be a straight-up class. Things like "h1.video", "#wrapper .video", ".video p", etc. will not work.

Also, the typography.css file must be in the root level of your theme's directory (not inside a subfolder) -- so in the same directory as the page type templates.
madeforspace replied on at Permalink Reply
madeforspace
I seem to be getting the same problem, my typography.css just wont link in.
I have tried several things suggested, cleared cache, cleared browser cache, made sure the css file is in the theme root.

I have my h1 etc also in my main.css so I can get stuff to work on my site but not to appear in the text editor styles dropdown.

I am using an identical link in my header for the typography as my main.css (obviously with the name typography.css) but it just wont seem to link.

Any alternate suggestions?
12345j replied on at Permalink Reply
12345j
permissions?
madeforspace replied on at Permalink Reply
madeforspace
Currently set to 644 the same as my main css.
I had not really thought about permissions, what would you recommend 12345j?
ThemeGuru replied on at Permalink Reply
ThemeGuru
How are you going about getting your typography stylesheet?

I know that if your using

<?php echo $this->getThemePath(); ?>/


it will not work.

Instead use

<?php   echo $this->getStyleSheet('typography.css')?>
12345j replied on at Permalink Reply
12345j
i use 755, but I'd think 644 would work.
madeforspace replied on at Permalink Reply
madeforspace
Hi Thomas, yup am using <?php echo $this->getStyleSheet('typography.css')?>

12345j gets the prize though, thanks a lot for that mate, changed it to 755 and bingo there were my styles. I have no idea why it should be but it works and for that I am grateful. I wish I could mark you best answer but it's not my question but have a virtual showering in Karma and my respect.

Now I am going to try and figure out why my Search feature wont work even though I have gone through all the usual steps :(
poetze replied on at Permalink Reply 2 Attachments
poetze
Hi,

I have the same problem. But unfortunately the permissions trick didn't do it for me. Also emptied the cash several times.

I checked if my file is loaded - yes it is - see attached chrome inspector pic.
but in the styles dropdown only a style that doesn't exist anymore is loaded. (see other attachement)

Hope somebody can help me, I don't see where I'm going wrong here.

thank you
Steevb replied on at Permalink Reply
Steevb
Did you change your typography.css file and not reload your theme?
poetze replied on at Permalink Reply
poetze
Hi Steeveb,
no I didn't reload the theme - how do I do this?
Didn't find a button or anything for it. I only changed the files, replaced them via FTP and all changes in .css and .php files normally worked.
Steevb replied on at Permalink Reply
Steevb
I get very frustrated, whether I work locally or remotely, when I edit my typography and look at the styles 'dropdown' nothing changes?

I find that I have to remove/uninstall my theme and then reload/reinstall for the typography to work?

I may be wrong, I might be doing something wrong, but on reload everything is fine.

Give it a try and see if it works for you.
poetze replied on at Permalink Reply
poetze
No idea - what happend but after an hour brake I have 2 styles - the old one and the new one. At least the new one is here now.. and now i also tried your method, and now the old style is gone. thank you
JohntheFish replied on at Permalink Reply
JohntheFish
Could it be a sticky browser cache?