如何删除 Joomla 的 <meta http-equiv= "content-type" content= "text/html; charset=utf-8" />?



如何删除 <meta http-equiv="content-type" content="text/html; charset=utf-8" />

在此PHP Joomla模板上?因为我从Joomla和模板中重复了Meta标签:/Head.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; ?>

Index.php是:

// 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'); ?>">

这是这个问题的图像:链接到问题(imgur(

如果我理解您的问题。您要删除重复的图表集吗?
简单删除第一个代码示例中的第一行。您可以在index.php

中尝试$doc->setHtml5(true);

最新更新