• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Answer Your Tech

Wordpress How-to Guides

  • Writing
  • Settings
  • Jetpack
  • Navigation
  • Hosting
  • Getting Started
  • Themes
You are here: Home / Settings / How to Switch to the Code Editor in Wordpress

How to Switch to the Code Editor in WordPress

June 11, 2019 By Matthew Burleigh

How to Switch to the Code Editor in WordPress

The Gutenberg editor introduced in WordPress 5.0 made it much easier to add elements to your posts. Whether you want to embed a YouTube video, a form, a table, or one of many other types of content, there is probably a block that you can add to do so easily.

But occasionally you may actually need to add some HTML code to one of your posts, and you might find that it’s difficult to do what you are trying to accomplish. Fortunately there is a Code Editor in Gutenberg that you can enable which allows you to type HTML directly into your post.

How to Enable the Code Editor in Gutenberg for WordPress

The steps in this article were performed on a site using WordPress 5.2.1. This guide assumes that you are using the Gutenberg editor on your site.

Step 1: Sign into the admin section of your site at (yourdomain.com)/wp-admin.

Step 2: Hover over the Posts tab and either create a new post or open an existing one.

open the posts menu

Step 3: Click the Show more tools & options button (the one with three vertical dots) above the column at the right side of the window.

show more tools and options

Step 4: Select the Code Editor option from the menu.

how to enable the code editor in wordpress

Note that you can also use the keyboard shortcut Ctrl + Shift + Alt + M to toggle the Code Editor on and off.

Do you need to link to a specific spot in one of your posts? Find out how to easily create and use HTML anchors with the Gutenberg WordPress editor.

Matthew Burleigh
Matthew Burleigh

Matt has been working with WordPress and creating content using this powerful content management system for years. While he has written about many other tech topics, WordPress is one of his favorites.

You can read his full bio here.

Join Our Free Newsletter

WordPress guides and deals

You may opt out at any time.
Read our Privacy Policy

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Related

Primary Sidebar

Join Our Free Newsletter

WordPress guides and deals

You may opt out at any time.
Read our Privacy Policy

Recent Posts

  • How to Add a TXT DNS Record in Cloudflare
  • How to Enable or Disable User Registration in WordPress
  • How to Install and Configure the WP Rocket Plugin
  • How to Make WordPress Not Organize my Uploads into Month and Year-Based Folders
  • How to Turn on Cloudflare Hotlink Protection

Site Info

  • Domain Name - Hostgator
  • Hosting - Cloudways
  • Theme Framework - Genesis
  • Child Theme - Smart Passive Income Pro
  • Site Speed - WP Rocket

Archives

  • November 2022
  • October 2022
  • May 2022
  • July 2020
  • September 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • July 2018
  • December 2016
  • November 2016

Categories

  • Comments
  • Genesis
  • Getting Started
  • Hosting
  • Jetpack
  • Navigation
  • Plugins
  • Settings
  • Sidebar
  • Themes
  • Writing
  • Affiliate Disclosure
  • Privacy Policy
  • FAQ
  • About
  • Contact

Copyright © 2023 AnswerYourTech.com

 

Loading Comments...
 

You must be logged in to post a comment.