您好我想编辑woocommerce site标题中的代码,我想知道'欢迎,用户'和'购物车'的代码来自哪里,我正在尝试将标题重量添加到标题,我得到了生成购物车重量的代码,但我似乎无法找到这些文件的位置,它们不在header.php中。
编辑:header.php确实有文件但是有些子文件来自这些文件:
header.php文件的代码:
<?php
//Add body classes
$body_classes = 'no_js';
if( ( yit_get_option( 'responsive-enabled' ) && !$GLOBALS['is_IE'] ) || ( yit_get_option( 'responsive-enabled' ) && yit_ie_version() >= 9 ) ) {
$body_classes .= ' responsive';
}
//Enabled dropdown in widgets
if( yit_get_option('enable-sidebar-dropdown') ) {
$body_classes .= ' yit_widget_dropdown';
}
$body_classes .= ' ' . yit_get_option( 'layout-type' );
?>
<!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" class="ie"<?php language_attributes() ?> xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
<![endif]-->
<!--[if IE 7]>
<html id="ie7" class="ie"<?php language_attributes() ?> xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
<![endif]-->
<!--[if IE 8]>
<html id="ie8" class="ie"<?php language_attributes() ?> xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
<![endif]-->
<!--[if IE 9]>
<html id="ie9" class="ie"<?php language_attributes() ?> xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
<![endif]-->
<!-- This doesn't work but i prefer to leave it here... maybe in the future the MS will support it... i hope... -->
<!--[if IE 10]>
<html id="ie10" class="ie"<?php language_attributes() ?> xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
<![endif]-->
<!--[if gt IE 9]>
<html class="ie"<?php language_attributes() ?> xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
<![endif]-->
<![if !IE]>
<html <?php language_attributes() ?> xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
<![endif]>
<!-- START HEAD -->
<head>
<?php do_action( 'yit_head' ) ?>
<?php wp_head() ?>
</head>
<!-- END HEAD -->
<!-- START BODY -->
<body <?php body_class( $body_classes ) ?>>
<!-- START BG SHADOW -->
<div class="bg-shadow">
<?php do_action( 'yit_before_wrapper' ) ?>
<!-- START WRAPPER -->
<div id="wrapper" class="container group">
<?php do_action( 'yit_before_header' ) ?>
<!-- START HEADER -->
<div id="header" class="group<?php if( yit_get_header_skin() == 'skin1' && yit_get_option('show-header-search') ): ?> header_with_search<?php endif ?> margin-bottom">
<?php
do_action( 'yit_header' ) ?>
</div>
<!-- END HEADER -->
<?php
do_action( 'yit_after_header' ) ?>