How to edit WordPress page's html code

2019-02-16 10:31发布

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.

2条回答
戒情不戒烟
2楼-- · 2019-02-16 11:14

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.

查看更多
beautiful°
3楼-- · 2019-02-16 11:31

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.

查看更多
登录 后发表回答