Remove 'Formatting guidelines'

DVkid - October 24, 2005 - 22:07

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.

me too

Michael Hofmockel - January 7, 2006 - 16:56

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

In modules > filter.module I

StuartDH - July 14, 2006 - 09:36

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

It's better to do this in

impahz - August 6, 2006 - 20:42

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;
}

and the link

ronan - August 25, 2006 - 04:03

#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)

Careful with getting rid of

shadowshifter - August 25, 2006 - 04:12

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 :(

just keep promoting firefox

impahz - September 4, 2006 - 19:58

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

drupal 5.1

drupalworld - March 18, 2007 - 20:50

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

Anywhere in style.css should

shadowshifter - March 22, 2007 - 05:26

Anywhere in style.css should work.

not work with garland theme

edex13 - March 25, 2007 - 16:30

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

bluemarine

drupalworld - March 26, 2007 - 08:18

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

Try this

ronan - March 28, 2007 - 23:21

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

It seems to be working for

drupalworld - March 31, 2007 - 17:09

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

Works like a charm on 5.1

drupalina - July 14, 2007 - 06:08

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!

this worked for me in 4.7.

BassPlaya - September 2, 2007 - 10:32

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?

Thank you, thank you, thank

Binary Blonde - September 5, 2006 - 07:45

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

override phptemplate_filter_tips_more_info()

christefanø - June 16, 2007 - 22:38

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.

also override theme_filter_tips()

greg@wisebread.com - September 4, 2007 - 10:56

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:

<?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.

thanks a lot!!

jruz - December 25, 2007 - 23:02

thanks a lot!!

works fine but...

BassPlaya - December 26, 2007 - 12:50

"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?

Just remember that using

Irrow - September 3, 2007 - 10:26

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/

you can also add this code

javierreartes - February 25, 2008 - 22:05

you can also add this code in template.php:

<?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
'';
}
?>

very nice javierreartes...

battochir - March 2, 2008 - 11:16

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

Thank you

javierreartes - March 5, 2008 - 20:20

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

I need this too

rrabbit - March 23, 2008 - 13:02

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.

Perfect! Thanks

Sophia - July 12, 2008 - 22:55

Perfect! Thanks :)

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

Some of my Drupal websites:

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

Hacking core

Applied_Microec... - August 19, 2008 - 02:58

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...

It's pretty common for

christefano - August 19, 2008 - 08:22

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.

Drupal 6

ben.walsham - August 20, 2008 - 21:28

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.

Hope the system will has the

luisfeng - July 30, 2008 - 09:25

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

 
 

Drupal is a registered trademark of Dries Buytaert.