Title: &#8220;Code&#8221; not working in the preview
Last modified: August 12, 2022

---

# “Code” not working in the preview

 *  [alex4111](https://wordpress.org/support/users/alex4111/)
 * (@alex4111)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/code-not-working-in-the-preview/)
 * Hello,
 * when I edit a post and mark one section as “code” this section is shifted to 
   the very left of the screen. It looks aweful.
 * In the preview it looks fine, but in the edit mode it is really annoying working
   with that bug.
 * See [https://imgur.com/a/cRO5WX1](https://imgur.com/a/cRO5WX1)
    -  This topic was modified 3 years, 9 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/code-not-working-in-the-preview/#post-15913881)
 * Themes employ editor styles to get the editor view to appear close to they way
   your actual pages look. These styles are actually independent of front end styling
   even though the intent is they would look the same. Your theme’s editor styling
   for HTML code elements seems to be off. I suggest bringing this up in your theme’s
   dedicated support channel so the theme’s editor styling can be corrected for 
   all of the theme’s users.

Viewing 1 replies (of 1 total)

The topic ‘“Code” not working in the preview’ is closed to new replies.

## Tags

 * [problem](https://wordpress.org/support/topic-tag/problem/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/code-not-working-in-the-preview/#post-15913881)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
