Does wordpress support html?
wordpress cannot directly support html, you need to modify xx.html to page-xx .php upload to the theme directory you are currently using, or create a page with the alias xx in the WordPress backend and publish it...
Method 1:
1 . Modify xx.html to page-xx.php and upload it to the theme directory you are currently using;
2. Create a page with the alias xx in the WordPress backend and publish it. You're done.
Note: The created page alias must be the same as page-. Or change xx to your page ID in step 1.
Method 2:
1. Modify xx.html to page-template-xx.php and then add:
<?php /* Template Name: xx 页面模板 */ ?>
<link href="<?php echo get_theme_file_uri( 'sample.css' ); ?>" rel="stylesheet" type="text/css" /> <script src="<?php echo get_theme_file_uri( 'sample.js' ); ?>" type="text/javascript"></script> <img src="<?php echo get_theme_file_uri( 'sample.jpg' ); ?>" />
WordPress Tutorial column!
The above is the detailed content of Does wordpress support html?. For more information, please follow other related articles on the PHP Chinese website!