Language
  • English
  • Français
Drupal custom theming or module development price estimate calculator

Search Result displays CSS code

Hi,

I have CSS code in content for styling. Due to this my search results is showing CSS code. Please let me know how this problem can be solved. Thanks in advance.

AP

The solution is in the

Aaron's picture

The solution is in the question itself. Take the css out of the content. There are hundreds of good reasons to avoid putting css into a node and you've just found a new one. The real question is what are you trying to achieve with the css being located in the node? One work around if you really need per node theming might be to use the css injector module. I've never used that module, but it's description makes it seem like it could be a fit.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Ask a question related to Drupal development or administration