WordPress runs on a mixture of HTML and PHP Web programming languages. Most PHP in a WordPress
theme comes in the form of short functions called template tags that
theme developers stick into HTML code to generate dynamic content. You
can edit the HTML as you normally would and ignore code within PHP tags.
If you want to edit HTML in posts or pages, edit the content in HTML
mode as opposed to the default visual mode. Sometimes themes also come
with options where you can add HTML, so check for a theme options page
as well.
Instructions
1. Navigate to the "wp-admin" folder of your WordPress website and log in to the dashboard. Navigate to "Appearance" and click the "Editor" link to load the "Edit Themes" screen.
2. Find the template you want to edit under the "Templates" heading and click on its link. When the template loads, you will see a mixture of HTML and PHP code. The "<?php" and "?>" tags wrap around PHP code, and everything else in the file is HTML. Edit the HTML as needed and click the blue "Update File" button to save your changes.
3. Navigate to "Posts" or "Pages" and click on the name of any content you want to edit. Click the "HTML" tab on the top of the editor box to switch to HTML editing mode. Edit the HTML as you like, but use only standards-compliant XHTML code. If you use non-standard XHTML and switch to the "Visual" editor, the editor will strip out all non-standard tags. This is important when pasting video embed codes using the "<iframe>" tag, for example. Click the blue "Update" button to save your changes.
4. Look for a theme options page in the very bottom of the left-hand menu or under "Appearance" in the same menu. Load the page and look for any text box that contains HTML. Edit the HTML as needed and update to save your new theme options settings.
1. Navigate to the "wp-admin" folder of your WordPress website and log in to the dashboard. Navigate to "Appearance" and click the "Editor" link to load the "Edit Themes" screen.
2. Find the template you want to edit under the "Templates" heading and click on its link. When the template loads, you will see a mixture of HTML and PHP code. The "<?php" and "?>" tags wrap around PHP code, and everything else in the file is HTML. Edit the HTML as needed and click the blue "Update File" button to save your changes.
3. Navigate to "Posts" or "Pages" and click on the name of any content you want to edit. Click the "HTML" tab on the top of the editor box to switch to HTML editing mode. Edit the HTML as you like, but use only standards-compliant XHTML code. If you use non-standard XHTML and switch to the "Visual" editor, the editor will strip out all non-standard tags. This is important when pasting video embed codes using the "<iframe>" tag, for example. Click the blue "Update" button to save your changes.
4. Look for a theme options page in the very bottom of the left-hand menu or under "Appearance" in the same menu. Load the page and look for any text box that contains HTML. Edit the HTML as needed and update to save your new theme options settings.
Tags:
Wordpress Tutorial