Latest News

Sunday, September 20, 2020

Wp Html Tag Part 2

Wp Tag

Editors

此页面还提供以下语言版本: 简体中文Русский

The Editor is where you add the content to your site or blog. Both posts and pages use the same editor. This page explains the different editors you can use.

Table of Contents

WordPress Editor

Also referred to as the Block Editor, the WordPress Editor launched in late 2018. It is the most powerful and flexible WordPress editing experience and used by millions of website owners around the world.

Each site element, like images, text, videos, and headers, is added through a block. Blocks are distinct structural elements that allow you to isolate areas of content to edit.

Learn more about how the WordPress Editor works.

Edit HTML in the WordPress Editor

You have two options for editing HTML in the WordPress Editor:

In the toolbar for each block, the ellipsis, or the three dots, has an Edit as HTML option to edit the HTML for just that specific block.

Edit as HTML - Block
Edit a block’s HTML

If you want to edit an entire page or post’s HTML, click the ellipsis near your Publish button to switch to the Code editor.

Code editor

Not all code will work when editing as HTML. If your code is well-formed and without error, check to make sure it’s on the approved HTML tags list, and that it’s not a restricted code, like JavaScript.

Switch to the WordPress Editor

If you created a page or post in the classic editor before the WordPress editor was introduced, the WordPress Editor will preserve your existing content in a Classic Block, which maintains a lot of the same functionality as the Classic Editor.

You can convert the content to blocks using the three dots at the top right of the Classic Block.


↑ Table of Contents ↑

Classic Editor

The Classic Editor was the default editor for WordPress.com sites and blogs before the WordPress Editor (see above) launched.

Within the WordPress editor, you’ll find the Classic block which replicates the functionality of the Classic editor inside of the WordPress editor. Here’s what it looks like:

Use the Classic block for the same editing experience as the Classic Editor

The Classic Editor is also available in WP Admin — the classic WordPress dashboard. You will often see images of this dashboard when looking at WordPress tutorials online. While you can do almost everything in your main WordPress.com dashboard, you can use WP Admin if that is your preference.


There are two ways to access WP Admin:

Image showing the link to WP Admin
  1. You can click on the link to WP Admin at the end of the list of settings under My Sites (shown left.)
  2. You can add /wp-admin to the end of your site’s url (for example: example.wordpress.com/wp-admin)

To edit a page or post in the Classic Editor, click on the title of the page or post:

Pages in WP Admin
Pages in WP Admin

The Classic Editor is made up of two editing experiences; the Visual Editor and the HTML Editor.

Visual Editor
The Classic Editor in WP Admin
The Classic Editor (Visual) in WP Admin

Powered by TinyMCE, the Visual Editor looks very similar to a word processor. The visual editor icons allow you to format text, change font alignment, insert bulleted and numbered lists, and more.

Missing this editing experience? The WordPress Editor has a Classic Block that includes this same functionality found in the Visual Editor.

HTML Editor
The Classic Editor (HTML) in WP Admin

The HTML editor allows you to write your pages and posts in HTML or edit the existing HTML. To access this, click on the Text tab next to Visual.

When you need to add a shortcode, add some font style, or paste in code from an outside source, you can use the HTML editor.

The HTML code you add must be well-formed and it must be listed in the allowed HTML tags list. The buttons at the top of the text editor make it easy for you to quickly insert most common HTML tags. You should also be aware that WordPress.com has some code restrictions, so JavaScript, embeds, and custom forms are not allowed for security reasons.


↑ Table of Contents ↑

Third-Party Editors

Sites that have upgraded to the Business or eCommerce plan can install plugins like third-party editors such as Elementor and WP Bakery. Sometimes third-party themes will include a customized editor too.

Bear in mind that when you use a third-party editor, the best place to get support for the tool is through the developers who made it. They often include links to contact them directly through the tool’s setup page in your WP-Admin Dashboard.

Not quite what you're looking for?

 Get Help
:)

No comments:

Post a Comment

من

Recent Post