15

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.

3
  • 1
    You'll need to edit the page template itself. No way you are going to edit html or php code from there Commented Feb 5, 2015 at 7:27
  • @PieterGoosen Where I can find it. Is there any directory by convention to store pages like this? Commented Feb 5, 2015 at 7:31
  • 2
    In your wordpress folder on the server, there will be a folder called wp-content, inside that will be folder called themes, inside that will be a folder with the name of your theme, inside that will be your template files and folders. Looking at your pic, you need to open and edit page.php. one note, never edit online files blindly, one little mistake will break you site. First test all code off line (if you don't have a local test install, get yourself one now) before making changes online. And never ever use the back end editors to edit template files. As I said, one mistake breaks your site Commented Feb 5, 2015 at 7:49

3 Answers 3

7

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.

Sign up to request clarification or add additional context in comments.

4 Comments

Never ever use the back end editor. One little teeny weeny mistake will break your site
I always ensure I have a backup and access to the site through FTP just incase, i guess it's just each to their own style of working
It is still bad practice and a lot of headaches. It is also unprofessional if you break a live site and clients are busy browsing the site
@Pieter is correct - making changes via Appearance --> Editor is a well established no-no.
2

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.

2 Comments

funny approach :)
Thanks for the last resort. Unfortunately didn't work for me, as the problematic part I'm trying to fix is in the template itself.
0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.