gpt4 book ai didi

php - Joomla 更改模板代码

转载 作者:行者123 更新时间:2023-11-28 02:49:19 24 4
gpt4 key购买 nike

刚遇到一个有趣的问题。

Joomla 3.6.2 以某种方式改变了模板的 index.php 文件,创建了奇怪的页面显示结果。

index.php 中的原始代码部分是这样的:

<div id="content">
<div id="main_content">
<div id="breakingnews">
<jdoc:include type="modules" name="breakingnews" style="xhtml" />
</div>
<div id="news_module">
<jdoc:include type="modules" name="news_module" style="xhtml" />
</div>
<div id="component_wrapper">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
<div id="content_module">
<jdoc:include type="modules" name="content_module" style="xhtml" />
</div>
</div>
<div id="right">
<div id="inner_right">
<jdoc:include type="modules" name="right" style="xhtml" />
</div>
</div>
<div id="breadcrumbs">
<jdoc:include type="modules" name="breadcrumbs" style="xhtml" />
</div>
<div id="clearfix"></div>
</div>

Joomla 创建此代码: DIV #right is within #main_content DIV but it is not supposed to be

同样的事情也发生在网站的其他部分,例如,博客布局中的元素;它将 .item 和 .span 元素放在彼此内部,如下所示: By that it makes the whole website layout go crazy!

伙计们,有什么想法吗??

谢谢!

最佳答案

您可能有不同数量的打开和关闭 <div>组件模板中的标签(文章?)你能看看/templates/your_default_template/html/com_content/article/[如果你重建它]

或者尝试在 FireFox 中使用“view-source”——它用红色标记未关闭的标签 [ctrl+u](我不确定 Chrome 或 Edge 是否标记了它?)

关于php - Joomla 更改模板代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40032159/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com