✏️ 正在编辑: header.php
路径:
/home/h359620/public_html/wp-content/themes/datis/header.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php if (! defined('ABSPATH')) exit; ?> <!doctype html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo('charset'); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php wp_body_open(); ?> <header class="site-header js-hidden-until-loaded"> <?php $opt = get_option('datis_theme_options', []); $header_id = 0; if (!empty($opt['datis_elementor_header'])) { $header_id = (int) $opt['datis_elementor_header']; } if ($header_id > 0) { if (did_action('elementor/loaded') && class_exists('\Elementor\Plugin')) { echo \Elementor\Plugin::instance()->frontend->get_builder_content_for_display($header_id); } else { $p = get_post($header_id); if ($p && $p->post_status === 'publish') { echo apply_filters('the_content', $p->post_content); } } } ?> </header>
💾 保存文件
← 返回文件管理器