5ucms论坛
标题:
header.php简单例子
[打印本页]
作者:
admin
时间:
2021-6-9 08:17
标题:
header.php简单例子
<?php
/**
* The header.
*
* This is the template that displays all of the <head> section and everything up until main.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package WordPress
* @subpackage Twenty_Twenty_One
* @since Twenty Twenty-One 1.0
*/
?>
<!doctype html>
<html <?php language_attributes(); ?> >
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><? wp_title(); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="<? echo get_template_directory_uri() ?>"/css/style.js">
<script src="<? echo get_template_directory_uri();?>/js/jquery.js">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
复制代码
作者:
admin
时间:
2021-6-9 08:17
get_template_directory_uri() 获取当前文件目录
欢迎光临 5ucms论坛 (http://bbs.5ucms.com/)
Powered by Discuz! X3.2