Title: Allow  tags
Last modified: August 21, 2016

---

# Allow tags

 *  [kyunomi](https://wordpress.org/support/users/kyunomi/)
 * (@kyunomi)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/allow-tags/)
 * Hi everyone,
 * i am trying to input the following code into the editor.
    `<style type="text/
   css">#gallery-1 {margin: auto;}</style>`
 * However, when i display it, it is read as text:
    #gallery-1 {margin: auto;}
 * It seems that wordpress automatically remove the <style> tags, as i couldnt find
   it under the html code as well. Can anyone help me? i would like to allow the
   style tags.
 * note: other tags such as div, h1 actually went through with no problem.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/allow-tags/#post-4471982)
 * Is this the only style you added that is an ID and not a class or default element(
   div, h1)?
 * That noted, this is not the manner to include CSS in a WordPress.org site.
 * [http://codex.wordpress.org/CSS](http://codex.wordpress.org/CSS)
 * To discover what CSS is output by your theme, use a web inspection tool such 
   as Firebug: [http://getfirebug.com/](http://getfirebug.com/) , Chrome Inspect
   Element: [https://developers.google.com/chrome-developer-tools/](https://developers.google.com/chrome-developer-tools/)
   or Internet Explorer 9+ F12 Dev. Tools: [http://msdn.microsoft.com/en-us/library/dd565627(v=vs.85)](http://msdn.microsoft.com/en-us/library/dd565627(v=vs.85)).
   aspx#csstool
 * There are others.
 * When editing CSS, use a Child Theme
    [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
   Custom CSS Plugin, or Theme provided custom CSS option. Edits to parent themes
   are lost on theme update.
 * Learn CSS: [http://www.w3schools.com/css/](http://www.w3schools.com/css/)
 *  Thread Starter [kyunomi](https://wordpress.org/support/users/kyunomi/)
 * (@kyunomi)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/allow-tags/#post-4471984)
 * i understand that it is best to keep all the css under a separate file. however
   in my circumstances, this is unique because these css are generated automatically
   by the wordpress gallery shortcode.
 * When using the shortcode, the text value of the css will appear and does not 
   apply to the gallery itself.
 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/allow-tags/#post-4471991)
 * > this is unique because these css are generated automatically by the wordpress
   > gallery shortcode
 * You can override any CSS per above.
 *  Thread Starter [kyunomi](https://wordpress.org/support/users/kyunomi/)
 * (@kyunomi)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/allow-tags/#post-4472040)
 * i understand that i can override.
 * but i what i want to know is why is the style tag ignored? what can i do to enable
   the style tag to be recognized in the editor?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Allow tags’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [kyunomi](https://wordpress.org/support/users/kyunomi/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/allow-tags/#post-4472040)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
