Is it possible to prevent the 'Formatting guidelines' from appearing? I'm using Flexinode to create customized content types but don't want the Formatting guidelines showing up everytime a text box is present.

Comments

Michael Hofmockel’s picture

I have a flexinode with a text area field that will be text only. No need for guidelines.

HofMonkey
Open-Source | Open-Access | Open-Mind

StuartDH’s picture

In modules > filter.module I changed line 801 from:

$extra = l(t('More information about formatting options'), 'filter/tips');

to:

// $extra = l(t('More information about formatting options'), 'filter/tips');

http://www.supermarketingmedia.com

maastrix’s picture

It's better to do this in the style.css so you don't loose your modifications when you update drupal. As long as it's not possible to adjust this through phptemplates, use the code below:

#comment_form .tips {
	display:none;
}
ronan’s picture

#comment_form .tips, .tips + a {
	display:none;
}

gets rid of the link too in browsers that recognize the sibling selector. (all the modern ones except IE6)

------------------------------------
Ronan
Founder - NodeSquirrel - https://www.nodesquirrel.com/
Agency Tools Lead - Pantheon - https://www.pantheon.io/

ryivhnn’s picture

Careful with getting rid of #comment_form a stuff, it makes TinyMCE and bbcode wysiwyg buttons stop showing up :)

Though I have no idea how it would work with that particular notation coz I've never seen it before, would be nice if all it took out was the silly formatting guidelines links and left the buttons.

Unfortunately most of my users insist on using IE :(

works at bekandloz | plays at technonaturalist

maastrix’s picture

just keep promoting firefox ;) and pray microsoft will fix the next IE browser..

drupalworld’s picture

I have tried this for drupal 5.1 but doesn't seem to work... although I am not good with css, and perhpas I have put it in the wrong place (:
Any help would be appreciated... many thanks
Drupalworld

ryivhnn’s picture

Anywhere in style.css should work.

works at bekandloz | plays at technonaturalist

edex13’s picture

i try to use with garland theme and it not work. please advise

drupalworld’s picture

doesn't work with bluemarine neither... I think the problem may be drupal5.1... as the previous posts date from before the great release :) But then again, I dont know much...
Drupalworld

WeAreGeek’s picture

If you are using the color module, you have to save your theme settings again. When doing this, the color module enabled theme will generate a new css from the original css file, which will end up in /files/color/[theme-name]-[some-number]/
Works fine here.

ronan’s picture

Looks like 5.1 has changed the id of the comment form and buried the link in a p tag.

I don't have a 5.1 install handy, so I haven't properly tested this, but this might work:

#comment-form .tips, #comment-form .tips + p a {
  display:none;
}

Two caveats:
- it will only work when there is just 1 format option
- it will only work on comment forms (hence the #comment-form)

If you want it to work on all forms use:

.tips, .tips + p a {
  display:none;
}

But I have no idea what loosening that restriction will do for anything else on the page so your mileage will vary.

Let me know if this works for you though.

------------------------------------
Gorton Studios - Websites that Work. http://www.gortonstudios.com/
http://www.gortonstudios.com/portfolio/technologies/drupal

------------------------------------
Ronan
Founder - NodeSquirrel - https://www.nodesquirrel.com/
Agency Tools Lead - Pantheon - https://www.pantheon.io/

drupalworld’s picture

It seems to be working for me, bluemarine, drupal 5.1.
Many thanks for this :)
Drupalworld

drupalina’s picture

Ronan, this is great. Thanks a lot.

I use FCK editor for all users and therefore don't need no formatting tips for users.

I previously proposed to temper with a filter.module (see http://drupal.org/node/68137) , but your CSS code worked perfectly on 5.1 (a theme customized from Zen) . It even removed the "More information about formatting options". Perfection.

Thanks again!

BassPlaya’s picture

this worked for me in 4.7. but instead of having a link to nothing I guess it would be better to get rid of the "input format" link straight away? I have posted a topic on this but no reaction so far. I guess giving the option to an anonymous user to select something he/she doesn't understand isn't a wise thing to do nor giving them a link to nothing.. in my case the above code used works but still you see "input format" then you can choose between Full HTML and Filtered HTML, then if you click on the "More information about formatting options" it shows the Compose Tips with "input formats: "Filtered HTML" and "Full HTML" in a list and no links and no information.. if I were a normal user I would find it very stupid to come across such a page with something and nothing..
How would you feel?

u4umar’s picture

I have got rid of this only by putting these two 6 lines in my default css file which is style.css in my case.
.wysiwyg-editor-fckeditor .tips{
display:none;
}
#comment-form p{
display:none;
}

First one will work if you are using fckeditor and if not then you can search it by firebug that which class is implemented on form.
Here is my drupal site on which I have applied.
http://www.pepads.com/comment/reply/1557#comment-form

Every time ready to help others.

Binary Blonde’s picture

Thank you, thank you, thank you for the CSS fix. :-)

Christefano-oldaccount’s picture

mikesmullin posted some code (for a theme's template.php) to http://drupal.org/node/68137

/**
* Implementation of theme_filter_tips_more_info().
* Used here to hide the "More information about formatting options" link.
*/
function phptemplate_filter_tips_more_info() {
  return '';
}

I'm reposting the same code here with the exception that it now follows Drupal's coding standards.

Greg Go’s picture

Thanks for posting that code! It led me to the theme_filter_tips() function that controls the display of the formatting tips.

Get rid of the actual tips by adding this to your template.php:

/*
* Override filter.module's theme_filter_tips() function to disable tips display.
*/
function phptemplate_filter_tips($tips, $long = FALSE, $extra = '') {
  return '';
}

This solution avoids the CSS masking used above.

jruz’s picture

thanks a lot!!

BassPlaya’s picture

"More information about formatting options" link are still visible and when clicked you go to a page that says "Compose tips" with no content.. any idea on how to remove this link as well?

Irrow’s picture

Just remember that using display:none may be bad for your search engine rankings as they may see it as 'spam'; so if you can, and you want to be sure that your rankings won't be affected prevent it from being written in the first place using hacks to the core or theme overrides.

----------
http://www.irrow.com/

javier_’s picture

you can also add this code in template.php:

/*
* Override filter.module's theme_filter_tips() function to disable tips display.
*/
function phptemplate_filter_tips($tips, $long = FALSE, $extra = '') {
  return '';
}
function phptemplate_filter_tips_more_info () {
  return '';
}
battochir’s picture

This is very nice solution without an ugly hack or css hocus pocus. Question...how can you do this in Drupal 6? I've tried it and it does'nt work. No surprise there as with every Drupal upgrade things change alot. However, I've looked at the functions in Drupal 6 and you're solution SHOULD actually work. Any ideas as to why it does'nt? Thanks again for the solution.

cheers,

wim

javier_’s picture

Hi, I didn't tried this in Drupal 6 yet, but as you said it should work. You can try using the theme name instead the engine name, like "garland_filter_tips"

Alternatively, in D6 you can register the function as a template. For example you could create and empty file called "filter-tips.tpl.php" (underscore are changed with hyphens)

here is more info about it:
http://drupal.org/node/132442#theme-templates
http://drupal.org/node/173880

If you can make it work please post a comment here for future reference.

Bests,
Javier

rrabbit’s picture

I'm using FCKeditor withe D6 and it works fine but the filter info below the text area is unnecessary and confusing. I'm too new to Drupal to hack this, so eternal gratitude offered to anyone who can!

Seems to me that this is something the FCKeditor module should do automatically whenever FCKeditor is enabled -- anyone found a hack for the module, rather than the template?

[EDIT 23/03/08]

Finally found how to disable this.

(1) As suggested by others, in modules/system/system.css:

.tips {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 0.9em;
  display: none; /* ADD THIS LINE */
}

(2) In modules/filter/filter.module:

/**
 * Format a link to the more extensive filter tips.
 *
 * @ingroup themeable
 */
function theme_filter_tips_more_info() {
  return /*'<p>'. l(t('More information about formatting options'), 'filter/tips') .'</p>' 
     COMMENT TO LEAVE ONLY return STATEMENT  */;
}

This leaves a nice clean form for non-HTML-savvy users. Probably not the best way to do it, but effective.

Sophia’s picture

Perfect! Thanks :)

----------
Cheers, Sophia

Some of my Drupal websites:

http://ikwilemigreren.info
http://mystonline.info
http://harmonicamasters.info
http://loomknitting.info

Applied_Microeconomics’s picture

Hacking core (modules/filter/filter.module) is about the wrongest way to do this - effective as it may be.

Still... not being able to deactivate this in an easy way is utter silliness. Removing something so common and prominently displayed (yet so confusing and unnecessary for the less technically inclined) in the front end should NOT require overriding PHP functions...

christefano’s picture

It's pretty common for Drupal sites to use theme overrides or have a site-specific module or two. The _filter_tips() and _filter_tips_more_info() functions that are mentioned above can be used either way.

ben.walsham’s picture

This advice worked for drupal 6.3 in my case. Add the following to template.php in themes/YourThemeName

/*
* Override filter.module's theme_filter_tips() function to disable tips display.
*/
function YourThemeName_filter_tips($tips, $long = FALSE, $extra = '') {
  return '';
}
function YourThemeName_filter_tips_more_info () {
  return '';
}

Don't forget to clear the template cache in your site Administer->Site Configuration->Performance->Clear Cached Data otherwise you won't see any change.

-Anti-’s picture

Thank you for that.

I've spent two evenings trying to find a D6 solution for:
· hiding the collapsible area (only solved by using one filter & one fckeditor profile per role)
· hiding the compose tips

What a ridiculous problem though. Does some dev out there really think it was a good idea to force users to choose an input filter, and to place a load of undecipherable garbage (it is to most people) under the text area of EVERY BLOODY DRUPAL SITE IN THE WORLD?? It's damn scary to think that this implementation of filters made it through a discussion process and two major versions of drupal. I hope filters are completely and utterly invisible to users in D7, unless the admin chooses to display them.

Unbelievable. For all its genius, sometimes drupal is so dumb.

khan2ims’s picture

The snippet by ben.walsham worked perfectly for me.

Imran Khan
Project Manager
New Earth Marketing

kenorb’s picture

Thanks.

xalexas’s picture

Thanks. It worked perfectly! Just have to Administer->Site Configuration->Performance->Clear Cached Data

Slovak’s picture

Thanks ben.walsham - that worked great (after I cleared the cache).

calvintennant’s picture

Thanks. I'm using this.

TmaX’s picture

Thank You Ben that was really neat!

zeta1600’s picture

I guess you can't make all browsers happy. Doesn't work on Safari.

mtraherne’s picture

This did not work for me - I have changed the theme name.

phreestilr’s picture

That works great for all content types and all fields site-wide, but is it possible to override these functions so that the filter tips are taken out only for a specific content type and/or a specific field?

Thanks!

mcurry’s picture

Here's what I did to clean up the input formatting tips area (thanks and a tip o' the hat to all that came before me...)

The following theme overrides for Drupal 5 wraps all formatting tips related output in a collapsed fieldset (titled 'Formatting Information') when not viewing the 'compose tips' page (/filter/tips). The link to the formatting tips page opens in a new window ('target=blank'), in order to prevent possible loss of in-progress editing.

/**
 * Implementation of theme_filter_tips()
 * 
 * We want to put the filter tips into a collapsible and collapsed fieldset 
 * in order to reduce visual clutter.
 */

function phptemplate_filter_tips($tips, $long = FALSE, $extra = '') {
  // $collapse determines whether we should collapse the input filter formatting
  $tipspage = arg(0) == 'filter' && arg(1) == 'tips';
  $collapse = !$tipspage;

  // Invoke default implementation.
  $output = theme_filter_tips($tips, $long, $extra);

  // If we aren't viewing the 'Tips Page' (/filter/tips) then we add 
  // a link at the bottom of the fieldset.
  if (!$tipspage) {
      $output .= '

'. l(t('More information about formatting options (opens in a new window)'), 'filter/tips', array('target'=>'_blank')) .'

'; } // If we want a 'collapsed' view, wrap output in a fieldset element // with the appropriate classes (.collapsible .collapsed). if ($collapse && !empty($output)) { $temp = '' . t('Formatting Information') . '' . $output . ''; $output = $temp; } return $output; } /** * Implementation of theme_filter_tips_more_info() * * Kill off the normal filter tips 'more info' link. * We add it to the Formatting Information fieldset * @see phptemplate_filter_tips, above */ function phptemplate_filter_tips_more_info() { return ''; }
luisfeng’s picture

Hope the system will has the option to disable the tips!
That's the best solution!

superxain’s picture

agree

kmetz’s picture

As filter/tips - the page behind the "More information about formatting options" link - generates its filter tips with theme_filter_tips(), i came across the following solution to keep filter/tips intact:

(for drupal 6, but it shouldn't be very different in 5)

/* Implementation of theme_filter_tips()
 * Remove filter tips under text input fields without touching the 'more info' link.
 */
function YourThemeName_filter_tips($tips, $long = FALSE, $extra = '') {
  $output = '';

  if (arg(0) == 'filter' && arg(1) == 'tips') {  // check if we are on the dedicated filter/tips page

    $multiple = count($tips) > 1;
    if ($multiple) {
      $output = t('input formats') .':';
    }

    if (count($tips)) {
      if ($multiple) {
        $output .= '
    '; } foreach ($tips as $name => $tiplist) { if ($multiple) { $output .= '
  • '; $output .= ''. $name .':
    '; } if (count($tiplist) > 0) { $output .= '
      '; foreach ($tiplist as $tip) { $output .= '
    • ' : '>') . $tip['tip'] .'
    • '; } $output .= '
    '; } if ($multiple) { $output .= '
  • '; } } if ($multiple) { $output .= '
'; } } } return $output; }

This allows one to hide the actual tips and keep the link to "More information about formatting options". It should be the default behaviour for this whole thing, uncluttered interface plus help available.

zilla’s picture

...is to use the lovely "string overrides" module

simply adding a string override for "More information about formatting options" to be replaced by (and then instead of just leaving it blank, hit the space bar one time to insert a blank )

...and voila, it is gone for good - and no touching template.php, no touching filters module, nothing...it's a string like any other...

........................................................................
i love to waste time: http://twitter.com/passingnotes

taite11’s picture

Using more modules slows Drupal down further.

StevenSokulski’s picture

That's akin to saying that putting a windshield on your car makes it run slower.

When you really get down to it, installing Drupal makes your Web server run significantly slower than if you just let it sit there...

I get your argument that installing "yet another module" to make each and every adjustment on your site has an adverse effect on the site's overall speed, but many users already make us of String Overrides for dozens of other site tweaks making this a very viable option.

I'll admit I installed String Overrides to make this change initially, but quickly found many adjustments I could make with the excellent little module.

christefano’s picture

String Overrides puts a UI on top of functionality that's already in Drupal 6.x core. (If you don't want to use another module, you can still replace the strings in settings.php.) Besides, using String Overrides is much, much faster than the previous practice of using the core locale module to translate strings.

mean0dspt’s picture

Great solution!

StevenSokulski’s picture

http://drupal.org/project/better_formats

Haven't tried it myself, but it says it'll hide the Format Tips when activated.

nirvanajyothi’s picture

Yup.better_formats seems to be the module!

Medicine,Surgery ...and Drupal.

rickvug’s picture

The better formats module solves this issue and more. Highly recommended. Use this or a form override in your template. DO NOT hack core to remove the tips.

-------------------------------------------------------------------
Rick Vugteveen | ImageX Media (work) | Blog (personal)

-------------------------------------------------------------------
Rick Vugteveen |rickvug.com @rickvug on Twitter

doomed’s picture

Another vote for Better Formats module.

wwwoliondorcom’s picture

Better formats is great for D6 but it's not yet available for D5.

JeniferTucker’s picture

I've just installed better formats module and it works fine with ordinary content types such as Page, Story, etc.
But I'm stuck with trying to get rid of the formatting tips when creating a biblio. i've also created new fields with cck.

I've done exactly the same creating a new content type and including new fields with cck.
This works with the better formats module and removes the formatting tips.

I can only assume that there's something hard coded in biblio somewhere?
Has anyone come across this themselves and worked out a fix?

mittalpatel’s picture

Better formats solved the problem for me. Just install the module, go to permission and uncheck the Show Format Tips and save.

BassPlaya’s picture

you could also post your gratitude (by rating it) on http://drupalmodules.com/module/better-formats#reviews that site is just awesome and many Drupallers use it to choose their set of modules.
Just in case you didn't know ;-)

Drupal on !

mittalpatel’s picture

Oh, thanks for letting me know. I love to show gratitude and give credits wherever required/necessary. :)

fabrizioprocopio’s picture

I did not see the permissions option/features
solved
thanks
fab

ispboy’s picture

vi filter.module

comment these lines:

/* $form['format']['guidelines'] = array(
'#title' => t('Formatting guidelines'),
'#value' => theme('filter_tips', $tips, FALSE, $extra),
);
*/
}
// $form[] = array('#value' => $extra);

wwwoliondorcom’s picture

hi,

does it work for drupal 5 ? any problem ?

thanks.

christefano’s picture

Modifying Drupal core this way is a bad idea. Use template overrides instead.

nikitas’s picture

download from http://drupal.org/project/better_formats
enable it
go to admin/user/permissions/1 ( or check the permissions for the anonymous user and you will find new permissions for the format option)
enable or disable the options about the format and that's it!!!
2minutes solution :P

alliax’s picture

doesn't work for me in some CCK fields (works on other CCK fields)
cafetiere expresso

krisna123’s picture

Add the following to template.php in themes/YourThemeName

/*
* Override filter.module's theme_filter_tips() function to disable tips display.
*/
function YourThemeName_filter_tips($tips, $long = FALSE, $extra = '') {
  return '';
}
function YourThemeName_filter_tips_more_info () {
  return '';
}

Note :
add this code below <?php
Don't forget to change YourThemeName to your theme name
Don't forget to clear the template cache in your site Administer->Site Configuration->Performance->Clear Cached Data.
worked for drupal 6.19.

herojig’s picture

But that option is no where to be found with better formats...least I don't know where to find it and I have it installed. I can change the name of the tip page, but not get rid of it, nor the text that inserted automatically by each input filter.

Phoenix.Consultants.Nepal (www.phoenixstudiosnepal.com)

alliax’s picture

Don't you read the readme file of your modules? It's in permissions, you have things to check added by better format.

vrwired’s picture

Using 6.x, I tried everything from least invasive down to core trying to get rid of this and came down to the core hack - on all disappoints. Began with better format module and permission, to css theme template hack, to template.php theme hack, to css hack in system core to template core which finally worked but still had to get rid of menu link 'Compose tips'... here's what it regrettably came down to:

(1) As suggested by others, in modules/system/system.css:

.tips {
margin-top: 0;
margin-bottom: 0;
padding-top: 0;
padding-bottom: 0;
font-size: 0.9em;
display: none; /* ADD THIS LINE */
}

(2) In modules/filter/filter.module:

/**
* Format a link to the more extensive filter tips.
*
* @ingroup themeable
*/
function theme_filter_tips_more_info() {
return /*'

'. l(t('More information about formatting options'), 'filter/tips') .'

'
COMMENT TO LEAVE ONLY return STATEMENT */;
}

3) To get rid of Compose tips in menu, search and comment out this block in modules/filter/filter.module:
$items['filter/tips'] = array(
'title' => 'Compose tips',
'page callback' => 'filter_tips_long',
'access callback' => TRUE,
'type' => MENU_SUGGESTED_ITEM,
'file' => 'filter.pages.inc',
);

I'm a newbie this month, but what a hack for such an ad hoc... how'd this come up anywho - how did this get into core? I think it suddenly appeared on me after a few modules installed but not sure which one....

szt’s picture

Better formats does this job, no need to (and DO NOT) hack the core.
After install, you must go to:
admin/user/permissions
admin/settings/filters/defauts
admin/settings/filters/settings

spaudel1’s picture

How to remove formatting guideline from drupal 7 comments?

stephandale’s picture

In D7 use something like this:

function yourtheme_form_comment_form_alter(&$form, &$form_state, &$form_id)
{
  $form['comment_body']['#after_build'][] = 'configure_comment_form';
}

function configure_comment_form(&$form) {
  $form['und'][0]['format']['guidelines']['#access'] = FALSE;
  return $form;
}
aliasnero’s picture

where should I add this code?

stephandale’s picture

You'd add it to your theme's template.php.

Po3t’s picture

This didn't work for me. The tips are still there after adding that code to my template.php

RobW’s picture

[Edit - after some closer examination, I don't recommend]
In your node.tpl.php, or whatever tpl you have for the parent entity of the comments:

 hide($content['comments']['comment_form']['comment_body']['und']['0']['format']['#theme_wrappers']);

This will break WYSIWYG if you have it enabled.

msathesh’s picture

Thanks @javierreartes.. Your code works for me..

/**
 * Remove the comment filters' tips
 */
function myTheme_filter_tips($tips, $long = FALSE, $extra = '') {
  return '';
}
/**
 * Remove the comment filter's more information tips link
 */
function myTheme_filter_tips_more_info () {
  return '';
}

wooody’s picture

How can we make this effect only Create new content. and make it display under comments input .

u4umar’s picture

I have got rid of this only by putting these two 6 lines in my default css file which is style.css in my case.
.wysiwyg-editor-fckeditor .tips{
display:none;
}
#comment-form p{
display:none;
}

First one will work if you are using fckeditor and if not then you can search it by firebug that which class is implemented on form.
Here is my drupal site on which I have applied.
http://www.pepads.com/comment/reply/1557#comment-form

chiappa’s picture

I found my answer from this link: the text format selection

.filter-wrapper { display: none; }

RobW’s picture

This is the easiest answer, but it's also, to put it bluntly, one of the shittier ones. Anytime you use display: none; you're removing the visual display but keeping the html and any Drupal related processing that that code requires (inconsequential here, but would definitely be a problem if you were to hide more dynamic content or an imagecached image). So basically you're increasing download time and in some cases the load on your available memory/cpu for no reason at all.

I'm not saying that we should never use display: none; -- I've just seen this as an increasingly common answer in the forums and I think we should all be aware of its pros and cons. The reality is sometimes when you take into account your client's budget or your personal time input, quick and dirty wins against difficult and correct. But it's not really a solution. Redefine a function or use a preprocessor if you can.

chiappa’s picture

I understand your point and I totally agree. But obviously this solution is for those who have no idea what exactly "Redefine a function or use a preprocessor" means, like me. Often when searching for answers there is the dirty css trick or the shit in your php files trick of which the former is the more permanent one. Although now my worry is that what else might stop displaying, and indeed quite a lot of fixes can be undoing previous fixes.

I just wish everything would be made turn on/offable, but I'm really grateful for all the code that's already out there and try to make the best of it to my capabilities.

Aleksic’s picture

template.php

  function [theme_name]_form_comment_form_alter(&$form, &$form_state, $form_id)
  {
    $form['comment_body']['#after_build'][] = 'remove_tips';
  }
 
  function remove_tips(&$form)
  {
    unset($form['und'][0]['format']['guidelines']);
    unset($form['und'][0]['format']['help']);
    return $form;
  }

I found this tip here and I try it. It's work very well.

sirviejo’s picture

Another way if you are using the comment-wrapper.tpl.php file in your theme.

You can unset the element before the rendering of the form like this:

// Render the comments and form first to see if we need headings.
$comments = render($content['comments']);
//hide ugly format guidelines tips and the input filter
hide($content['comment_form']['comment_body']['und']['0']['format']);
$comment_form = render($content['comment_form']);

Please note that hiding this could break any implementation of a rich editor in the comment body textarea.

kbrinner’s picture

Yet another way to do this is explained here: http://drupal.stackexchange.com/questions/12220/how-to-hide-input-format...

// hook_form_alter function
function CUSTOM_MODULE_form_alter(&$form, &$form_state, $form_id) {
    // We want this on a specific node type
    if ($form_id == 'NODE_TYPE_node_form') {
        $form['#after_build'][] = 'CUSTOM_MODULE_NODE_TYPE_node_form_after_build';
    }
}

// afterbuild function
function CUSTOM_MODULE_NODE_TYPE_node_form_after_build($form) {
    // We want this on a specific field
    $form['YOUR_FIELD']['und']['0']['format']['#access'] = FALSE;
    return $form;
}
cheese_monkey’s picture

My God, this is incredibly frustrating. Everything that Google can find only works for Drupal 4, or 5, or sometimes 6. Nothing for Drupal 7.

Is there anything out there that doesn't require writing my own theme or hacking up a css file? We're running Bartik and don't have any custom css. The "More information about text formats" is fine and we don't want to hide that link, or anything on that linked page. Our complaint is with the massive wodge of text underneath the text format dropdown and "more information" link. Our users don't want to see that pile of text when editing a node, if they wanted that much reminders they'd be clicking the "more information" link in the first place.

Now I understand why editing the core code is so popular.

drvdt’s picture

Hi all,
I add this code in the end of the theme that I am using:

.filter-wrapper {
display:none;
}

It works!

My sites: Medicare

zilla’s picture

just wanted to let you know that this appears to work well using CSS Injector module with Omega 4 (and Ohm) theme

thanks.

krishanchandra’s picture

/*
* Override filter.module's theme_filter_tips() function to disable tips display.
*/
function phptemplate_filter_tips($tips, $long = FALSE, $extra = '') {
  return '';
}
function phptemplate_filter_tips_more_info () {
  return '';
}

This Code working fine. Thanks.

xbrianx’s picture

I just want to comment, to all the people that say the above code does not work.. Realize that you need to change phptemplate_ to the name of your theme in order for it to work. A lot of non coders will not realize this.

rwilson0429’s picture

Thanks krishanchandra. That works for me. And, as xbrianx commented April 6, 2013, the phptemplate part of the function must be changed to the name of your administrative theme.

I'm not a big fan of using CSS to hide things that can be unset using phptemplate functions. So, I hope the additional tips below will be helpful for those who are fairly new to using Drupal.

More helpful tips for those who may be somewhat new to Drupal:

  • This code is for Drupal 7. Not sure if it will work in earlier versions of Drupal
  • It may also be helpful to note that this function should be put into the template.php file of your administrative theme. So, if I'm using a subtheme named Seven-Subtheme of the Seven administrative theme as my administrative theme than the code would be like this:
    /*
    * Override filter.module's theme_filter_tips() function to disable tips display.
    */
    function [MY SUB THEME NAME]_filter_tips($tips, $long = FALSE, $extra = '') {
      return '';
    }
    function [MY SUB THEME NAME]_filter_tips_more_info () {
      return '';
    }
  • create a sub theme of your administrative theme and place this code in the template.php file of your administrative sub theme. This avoids losing this code when you update your administrative theme
  • DO NOT include the <?php and ?> opening and closing tags when entering code in your template.php file
  • Flush All Caches

ReggieW

CD’s picture

Following

rajmataj’s picture

To answer the original question, the module Simplify is worth looking at. It hides the formatting guidelines and many other arguably unnecessary elements.

spgd01’s picture

http://www.drupal.org/project/better_formats
is a better option. It removes the php and all code so their is no hidden content that can damage SEO and bloat the page load.