cmit
cmit

Reputation: 261

How to edit WordPress page's html code

I can't get editable html code behind the page. I want to make some changes to the page. Web site is hosted in the remote server. Someone assigned this task. There is empty editor when open edit page as below image.

enter image description here

Also I added plugin and actived it but can't get the result.

Upvotes: 15

Views: 63055

Answers (3)

Nicolai Weitkemper
Nicolai Weitkemper

Reputation: 634

In WordPress 5.5.3, you should be able to click the three dots on the top right, then select Code editor. Alternatively, press Ctrl+Shift+Alt+M.

Upvotes: 0

WSBT
WSBT

Reputation: 36333

If you know exactly what you are doing, you can use Chrome "Inspect" feature, and change the HTML of the content inside the WordPress WYSIWYG Editor. After injecting your HTML, click Preview or Publish and your changes will be saved correctly.

Upvotes: 2

Phil Nind
Phil Nind

Reputation: 341

The picture you posted is of the WYSIWYG editor, which is only for adding content to the page.

If you want to edit the layout of the page itself you have 2 options -

Minor page edits to appear across all pages on the site - Go to Appearance -> editor -> page.php and then edit the code to suite your needs.

Large page edits to appear on one or two pages -

  • Get access to the files
  • Duplicate page.php with a different name
  • Edit code

When you go to add a new page you should have an option to pick a page template. Choose the page template you just created.

Upvotes: 7

Related Questions