TinyMCE + CSS

Mark

Administrator
Staff member
you should be able to add CSS classes to custom pages without issue, just be sure you are using HTML mode.

instead of adding <style> tags, you should add a class: <div class="something">

then in your user.css file define it as normal...

.something {
color: red;
}
 

proxydesign

Visiolist-Fan
Yes, I know that.
The issue I have is to remove the "#sidebar". It should look like this: http://i.imgur.com/pkIij9T.png

The code I am trying to add is:
<style>
#sidebar {
display: none;
}
</style>

but as I mentonied in the first post, I need to add that code in a TinyMCE file to get it working.
 

Mark

Administrator
Staff member
you can do this with plugins instead of altering the files

make a plugin file called: include_source.php

in that file put
Code:
if($FORM['id'] == 'whatever_your_page_id'){
$TMPL['css_styles'] .= '<style type="text/css">
#sidebar {
display: none;
}
</style>';
}
that should do it
 
Top