Open In App

A Beginner's Guide to the WordPress Text Editor

Last Updated : 23 Jul, 2025
Comments
Improve
Suggest changes
2 Likes
Like
Report

WordPress generally uses Content Management Systems (CMS) for creating blogs and websites. It is also known for its simplicity, and dynamic features. Whether you are making a blog, creating a business website, or creating an online portfolio. WordPress provides a user-friendly platform that helps to publish content easily. One main feature that WordPress gives is its embedded text editor. we will help beginners to understand the WordPress text editor, and how to use WordPress text editor, and we will discuss its basic to advanced features too.

a

These are the following topics that we are going to discuss:

What is WordPress Text Editor?

The WordPress Text Editor, Which is also known as the Classic Editor. It is a text-based editor that facilitates users to write or design their content using HTML and basic styling options. This is varied from the Block Editor, the Text Editor shows content in raw HTML, which gives users more control over how their content seems. It is a required tool for users who prefer a code-first approach and need the flexibility to modify their content over what the Block Editor gives.

Text Editor vs Block Editor

The Text Editor in WordPress is an easy, code-focused interface that permits users to write and design content by using basic HTML. Text Editor is good for users who need full access to the content structure and are comfortable using code. On the other hand, The Block Editor is a visual, drag-and-drop interface introduced with Gutenberg. This will break content into blocks, like paragraphs, images, and videos, permitting users to design complex layouts without needing coding knowledge. Hence, The Text Editor gives consistency and flexibility to users, and the Block Editor provides a more user-friendly and clear experience for non-technical users.

Accessing the WordPress Text Editor

By default, WordPress now uses the Block Editor, but you can still reach the Text Editor. Here are the basic steps which will show you how to access the text editor:

  • First You will have to Log in to your WordPress account and open the dashboard.
  • Then select the "Posts" or "Pages" option in the left-hand menu.
post-and-page
click on the posts
  • Next you will have to press on the "Add New" option to create a new page or post, or select an existing post to modify.
add-new
click on "Add New Post"
  • Within the Block Editor, push the three vertical dots option in the upper-right side.
  • At last, choose the "Code Editor" from the drop-down menu, which will switch you to the WordPress Text (HTML) Editor.
code-editor
Choose the code editor

Why to Use the Text Editor?

While the WordPress Visual Editor is easy to use and simple for beginners, the WordPress Text Editor gives many benefits that make it a useful tool for more skilled users or those who are looking for specific feature:

  • Direct HTML Editing: The Text Editor in WordPress gives full control over the HTML structure of your content. This permits skilled users to manually add custom HTML elements, include media, or include elements that may not be supported by the Visual Editor. Unlike the Visual Editor, which can sometimes delete certain tags, the Text Editor saves them, giving you exact control over formatting. This is mainly useful for adding custom styling, special embeds, or third-party scripts that need specific HTML placement, making the Text Editor a preferred tool for users comfortable with code.
  • No Auto-layout Issues: The Visual Editor in WordPress sometimes automatically inserts irrelevant <p> or <br> tags, which make issues in content layout. So , the WordPress Text Editor prevents this problem by giving users direct control over the HTML structure, enabling them to manage line breaks, paragraphs, and other elements manually. Which will provide the cleaner, and more predictable output. For those needing clarity in their layouts, the Text Editor confirms that your content looks exactly as intended without additional tags interfering with the structure.
  • More efficient for Custom Code: When inserting custom JavaScript, iframes, or other dynamic content, then the Visual Editor can often delete or alter the code, causing it to glitch. The Text Editor avoids this issue by saving the exact code input. This is crucial for adding elements like custom forms, widgets, or third-party scripts. Developers and skilled users trust on the Text Editor when integrating such code, as it confirms the correct functionality of these elements, making it an important tool for custom development needs in WordPress.

Basic HTML in the WordPress Text Editor

When working with the WordPress Text Editor, knowing basic HTML is important for designing a content more capably. Unlike the Visual Editor, which allows for a more drag-and-drop experience, the WordPress Text Editor depends on HTML to structure, format, and show a posts and pages. By knowing basic HTML tags, you will be able to adjust how your content displays on the front end of your website.

HTML (HyperText Markup Language), is the core structure for web content, which uses HTML “tags” to describe elements like headings, paragraphs, links, and images. When you switch to the WordPress Text Editor, you are mainly working directly with HTML to handle the layout and style of your content. Below are the some fundamental HTML tags you should be familiar with.

Headings in HTML

In HTML, headings are the key component in organizing the content for both clarity and upgrading SEO (Search Engine Optimization). Heading tags in HTML are of six types from <h1> tags to <h6> tags, where <h1> tag being the highest and most important level and <h6> tags is the least.

<h1>This is mainly used for titles or important topics</h1> <h2>This is used for subheadings or major sections under your main heading</h2> <h3>This is commonly used for subsections under an <h2> heading</h3> <h4>typically used for even smaller subsections</h4>

HTML
<!DOCTYPE html>
<html>

<head>
    <title>Example</title>
</head>

<body>
    <h1>H1 is mainly used for titles or important topics</h1>
    <h2>H2 is used for subheadings or major sections under your main heading</h2>
    <h3>H3 is commonly used for subsections under an heading</h3>
    <h4>H4, H5, H6 are used for even smaller subsections</h4>
</body>

</html>

Here are some basics steps to add HTML code in WordPress Text Editor

Note: You have to follow the same steps as you followed previous to access the WordPress Text Editor.

  • Press thee dots that is lying on the right hand side and select the Code editor option.
WCE_image
select the code editor option
  • After selecting the code editor option. The UI is looking something like this.
imresizer-1727276714339
  • In the next step add the post title. For an Example: "Heading Example".
imresizer-1727276827828
  • After adding the post title, write your HTML code.
imresizer-1727277002927
  • Now, after writing the HTML code publish your post by clicking on "Publish" icon and select a visibility like public, private and password protected.
Screenshot-2024-09-25-064935
  • After publishing the post, the output is:
Heading
  • If you want to edit your post, simply click on "Edit post" option.
imresizer-1727277501778
Edit the post
  • At last, add some content and save your post, then revisit your post again.
imresizer-1727277575085
sav ethe post

Output:

imresizer-1727277862401
heading tag use

Paragraphs in HTML

In HTML, paragraphs are showed by the <p> tag. Each block of text that you need to shown as a paragraph will be covered in a <p> tag. They are required for segregating chunks of text, which makes it simpler for users to read and for search engines to get the flow of content.

<p>HTML is an necessary part of web development. It helps to define the structure of a webpage, including headings, paragraphs and links.</p>
<p>In WordPress the Text Editor permits you to work directly with HTML to confirm that the content is formatted accurately how you want it.</p>

Output:

Screenshot-2024-09-20-115007
Paragraph tag use

Formatting Text in the WordPress Text Editor

The WordPress Text Editor does not come with the drag-and-drop features of the Block Editor, but it is good for those who prefer to keep content simple and clean.

Here is how to write and design text in the editor:

Basic text formatting

Bold Text: To make text bold, we use the <strong> tag or the <b> tag. Hence both the tags gives the similar output.

<p>This is an example of <strong>bold</strong> text.</p>

Output:

Screenshot-2024-09-25-073614
Bold Text Use


Emphasis Text: It is used to italicize text, which adds emphasis, you use the <em> tag or the <i> tag

<p>This is an example of <em>italicized</em> text.</p>

Output:

Screenshot-2024-09-25-073727
Emphasis Text use

Blockquotes: To highlight quotations, we use the <blockquote> tag:

<blockquote>
<p>HTML stands for HyperText Markup Language. It is used to design web pages using a markup
language. HTML is the combination of Hypertext and Markup language. Hypertext defines the
link between the web pages. A markup language is used to define the text document within tag
which defines the structure of web pages.</p>
</blockquote>

Output:

Screenshot-2024-09-25-130016
Blockquotes use

Adding links in the WordPress Text Editor is simple by using the <a> tag you can add links in WordPress. Here is an basic example:

<p>The Anchor tag defines a hyperlink, which is used to link from one page to another.<p>
<a href="https://www.geeksforgeeks.org/" target="_blank">Visit my GeeksForGeeks website</a>
  • href: This attribute indicates the URL.
  • target="_blank": This attribute opens the link in a new tab.

Output:

Screen-Recording-2024-09-25-095144
The use of a tag in Wordpress

Adding Media (Images, Videos, and Audio) in the WordPress Text Editor

The Text Editor permits you to add media such as images, videos, and audio files with greater control over their attributes.

Adding Images in the WordPress

In the WordPress Text Editor, you will be able to include images by using the WordPress media uploader or by manually adding HTML code.

By Using the WordPress Media Uploader

  • Open the post or page where you want to add the image.
  • Click on the Add Media button given above the text editor.
  • Pick the image from the Media Library.
  • Adjust the image settings such as alignment, size, and link options if required.
  • Click Insert into post.

By Using HTML Code

Example:

<img src="https://media.geeksforgeeks.org/wp-content/uploads/20240905154658/gfglogo.jpg" alt="gfg image" />
  • src attribute: This is the URL where your image is stored.
  • alt attribute: The alt attribute will give a description of the image for SEO and for accessibility purposes.

Output:

Screenshot-2024-09-20-113314
The preview of Image

Adding Videos and Audio in WordPress

Adding videos enhances content by providing visual and auditory information. You can insert videos into your posts or pages using HTML. while audio files can be a valuable addition to your content, especially for podcasts or music files.

For adding a video:

<video width="320" height="240" controls>
<source src="https://example.com/video.mp4" type="video/mp4">
</video>

For adding an audio file:

<audio controls>
<source src="https://media.geeksforgeeks.org/wp-content/uploads/20241009180552641558/sample-12s.mp3" type="audio/mpeg">
</audio>

Adding Tables

Tables will be help in organize data and present it in a structured format. The WordPress Visual Editor does not contain a built-in table editor, but you can create tables using HTML in the Text Editor. Here is an basic example of table:

HTML
<table border="1">
  <thead>
    <tr>
            <th>Firstname</th>
            <th>Lastname</th>
            <th>Age</th>
        </tr>
   <tbody>
        <tr>
            <td>Riya</td>
            <td>Verma</td>
            <td>20</td>
        </tr>
        <tr>
            <td>Kajal</td>
            <td>Mali</td>
            <td>32</td>
        </tr>
        <tr>
            <td>John</td>
            <td>Watson</td>
            <td>39</td>
        </tr>
  </tbody>
</table>


Output:

Screenshot-2024-09-20-113852
The preview of Table

Advanced Features of the WordPress Text Editor

The WordPress Text Editor gives upgraded features that permit users to boost their content with the help of advanced HTML techniques. These advanced features are mainly useful for users who are comfortable with basic HTML and want to have more control over their content's design, layout, and interaction.

Custom HTML Styling

One of the most useful advanced features of the WordPress Text Editor is the ability to apply custom HTML styling directly to the content. These feature allows you to control the look and feel of your posts or pages beyond what is provided by the standard editor or theme settings.

In CSS You can add inline CSS to HTML elements, which permits you to style specific parts of your content without modifying the global CSS file.

<div style="background-color: #f0f0f0; padding: 20px;">
<p>This div has custom styling applied using the Inline CSS.</p>
</div>

Integrating External Content

This is the another advanced feature of the WordPress Text Editor that boost the richness and interactivity of the posts. The WordPress Text Editor allows you to add embed codes from multiple external sources, like social media platforms, Google Maps, videos, forms, and more.

For an example, integrating a Google Map:

<iframe src="//paste the google map link" width="600" height="450" allowfullscreen></iframe>

Example:

<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3506.160282351004!2d77.39407938093537!3d28.504825%5C
01316835!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x390ce626851f7009%3A0x621185133cfd1ad1!2s
GeeksforGeeks%20%7C%20Coding%20Classes%20%7C%20Noida!5e0!3m2!1sen!2sin!4v1727241170256!5m2!1sen!2sin"
width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>

Output:

map_optimized
Google map

Embed Custom JavaScript

The WordPress Text Editor permits users to embed JavaScript within their content, giving them the ability to add interactive elements like animations, sliders, or custom form validation. JavaScript is a programming language used to create dynamic interactions on websites, and having the ability to add it directly in the editor which provides a wide range of chances for upgrading user experience.

Example: This is an simple JavaScript function to perform an action when a button is clicked:

<button onclick="showAlert()">Click me</button>

<script>
function showAlert() {
alert("Button Pressed!");
}
</script>

Top 4 Best Practices for Using the WordPress Text Editor

Use Headings to Arrange Content

One of the most key best practices when using the WordPress text editor is to divide your content into sections by using headings. This provide structure, making your content simpler for readers to navigate. They also signal the order of your content to search engines, boosting search engine optimization (SEO). Proper heading usage not only upgrades readability but it also plays an vital role in boosting your SEO performance. Search engines uses headings to know the main topics and keywords of your content.

Preview Your Content Before Publishing

Before hitting upon the "Publish" button, it is strictly recommended to review your content. The WordPress Text Editor provides a "Preview" button that lets you see how your post will be appear on your website.

  • Check formatting: Confirm that headings, paragraphs, lists, and media appear as expected.
  • Mobile-friendly: Use the preview tool to check how your content looks on both desktop and mobile devices. A major portion of website traffic comes from mobile users, Hence your content should be optimized for smaller screens also.

Use Shortcodes for Adding Functionality

The WordPress Text Editor supports shortcodes, which are the simple pieces of code that permit you to add advanced features to your post or page without touching the source code. For an example, shortcodes can be used to embed galleries, contact forms, or social media feeds.

Common shortcodes include:

  • [gallery] for image galleries.

Example:

[gallery ids="1,2,3,4,5"]
  • [audio] for embedding audio files.

Example:

[audio src="https://example.com/audio.mp3"]
  • [video] for embedding videos.

Example:

[video src="https://example.com/video.mp4" width="640" height="360"]

Save Drafts and Use Autosave

One of the most important best practices when working in the WordPress Text Editor is to save your work in regular basis. WordPress automatically saves drafts at regular intervals, but it is a good approach to click the "Save Draft" button as you work. This confirms that your content is preserved, even if you accidentally close the browser or experience a technical issue. Additionally, WordPress keeps revision histories, so you can always restore to a previous version of your post if it is required.

WordPress Text Editor Plugins

Below are the top 3 WordPress text editor plugins through which you can improve your content creation experience.

Classic Editor

Screenshot-2024-09-25-123002
classic editor plugin

TinyMCE Custom Styles

Screenshot-2024-09-25-124237
TinyMCE Custom Styles plugin

Just Writing

Screenshot-2024-09-25-124613
Just writing plugin

Basic Example of a Page Using WordPress Text Editor

Step 1 : First Login to your WordPress account.

Step 2: Select a Post option then click on Add new Post option.

Step 3: Add a Post title. For an example: GeeksForGeeks

Step 4: Write this given code on your WordPress code editor.

HTML
<h1>Welcome to My GeeksForGeeks Website</h1>

<p>GeeksforGeeks is a leading platform that provides computer
   science resources and coding challenges for programmers
    and technology enthusiasts, along with interview and 
    exam preparations for upcoming aspirants. With a strong
    emphasis on enhancing coding skills and knowledge, it has 
    become a trusted destination for over 12 million plus
    registered users worldwide. The platform offers a vast
    collection of tutorials, practice problems, interview
    tutorials, articles, and courses, covering various 
    domains of computer science.</p>

<h2>Our Mission</h2>

<p>Our mission is to empower programmers and technology
   enthusiasts worldwide to excel in their coding skills and
   unleash their full potential. We want to bridge the gap 
   between theory and practice, equipping individuals with
   skills and expertise required to tackle real-world challenges
   in the ever evolving field of technology and get them
   prepared for their dream jobs.</p>

<h2>Services We Offer</h2>

<ul>
    <li>Web Design</li>
    <li>SEO Optimization</li>
    <li>Content Strategy</li>
    <li>Social Media Marketing</li>
</ul>

<h2>Contact Us</h2>

<p>If you'd like to get in touch, feel free to email us at
<a href="mailto:[email protected]">[email protected]</a>.</p>

<img src=
"https://media.geeksforgeeks.org/wp-content/uploads/20240905154658/gfglogo.jpg"
    alt="gfg" />

<h2>Follow Us</h2>

<p>Follow us on <a href="https://x.com/geeksforgeeks" 
                   target="_blank">Twitter</a> for more updates.</p>
[youtube https://www.youtube.com/watch?si=szhQfwRpVCTpyG2Y%5D&v=lozDmn15zcw&feature=youtu.be


  • In the WordPress text editor the given code is shown like this.
Screen-Recording-2024-09-25-103419
View of website

Step 5: Now its time to publish your WordPress post, click on publish icon.

Screenshot-2024-09-25-102508
Publish the website
  • You can also select a visibility like public, private and password protected.
Screenshot-2024-09-25-064935
Change the visibility

Step 6: In last , if you want to launch your post click on "Launch your site" option and than select a domain.

domain
choose a Domain

Output:

Screen-Recording-2024-09-25-064105
The website

Conclusion

The WordPress Text Editor is a dynamic tool that approves you to create and layout content with basicness. By perfecting in basic HTML and learning the text editor complex features, now you will be create user-friendly and systematic content on your WordPress site. This article has encompassed all thing from basic text formatting to more augmented features including shortcodes, tables, and custom HTML. By pursuing these core steps and best practices, now you will be able to fine-tune your use of the WordPress text editor and augment your content design process.


Article Tags :

Explore