Php 如何删除<;meta http equiv=";“内容类型”;内容=”;text/html;字符集=utf-8“/&燃气轮机;乔姆拉的?
如何删除Php 如何删除<;meta http equiv=";“内容类型”;内容=”;text/html;字符集=utf-8“/&燃气轮机;乔姆拉的?,php,html,joomla,character-encoding,header,Php,Html,Joomla,Character Encoding,Header,如何删除 在这个PHP Joomla模板上?因为我从Joomla和模板中复制了Meta标记:/theHead.php它调用的文件是: <meta charset="<?php echo $this['system']->document->getCharset(); ?>"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <?php if($this['config']->g
在这个PHP Joomla模板上?因为我从Joomla和模板中复制了Meta标记:/theHead.php
它调用的文件是:
<meta charset="<?php echo $this['system']->document->getCharset(); ?>">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<?php if($this['config']->get('responsive', true)): ?>
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php endif; ?>
<?php if (isset($error)): ?>
<title><?php echo $error; ?> - <?php echo $title; ?></title>
<?php else: ?>
<jdoc:include type="head" />
<?php endif; ?>
以下是此问题的图像:
如果我正确理解你的问题。是否要删除重复的图表集?
简单地删除第一个代码示例中的第一行。
您可以尝试
$doc->setHtml5(true)是的,这就是我想要的:)很抱歉这个愚蠢的问题。。。我是一个PHP高手,我应该把$doc->setHtml5(true)放在哪里
在index.php中?将其放在Head部分的任何位置,或者更好地放在Head中的现有部分中。如果我删除这应该只删除Head中的这一行。通过保存来转换文件可能会导致您的编辑器出现问题。好的,我已修复:)问题是我需要调用文档:)
// get theme configuration
include($this['path']->path('layouts:theme.config.php'));
?>
<!DOCTYPE HTML>
<html lang="<?php echo $this['config']->get('language'); ?>" dir="<?php echo $this['config']->get('direction'); ?>" data-config='<?php echo $this['config']->get('body_config','{}'); ?>'>
<head>
<?php echo $this['template']->render('head'); ?>
</head>
<body class="<?php echo $this['config']->get('body_classes'); ?>">