Php 在prestashop中将CSS资源从头到脚移动
我想删除Prestashop中从Php 在prestashop中将CSS资源从头到脚移动,php,smarty,prestashop,Php,Smarty,Prestashop,我想删除Prestashop中从到页脚的所有CSS(和JS)资源。但即使经过大量的实验,我也无法理解。每次我改变一些东西,他们的结果都是出乎意料的 我尝试在类中的FrontController.php中编辑displayHeader()和displayFooter(),在themes/prestashop文件夹中编辑header.tpl和footer.tpl 我想我找不到正确的方法。我也尝试过谷歌搜索。有什么帮助吗 注意:我只能通过FTP访问文件。在PS 1.6中,您可以使用“高级参数->性能”
到页脚的所有CSS(和JS)资源。但即使经过大量的实验,我也无法理解。每次我改变一些东西,他们的结果都是出乎意料的
我尝试在类中的FrontController.php中编辑displayHeader()
和displayFooter()
,在themes/prestashop
文件夹中编辑header.tpl
和footer.tpl
我想我找不到正确的方法。我也尝试过谷歌搜索。有什么帮助吗
注意:我只能通过FTP访问文件。在PS 1.6中,您可以使用“高级参数->性能”中的此选项在末尾移动JS 如果要移动CSS,可以将此代码从/themes/your theme/header.tpl移动到footer.tpl:
{if isset($css_files)}
{foreach from=$css_files key=css_uri item=media}
{if $css_uri == 'lteIE9'}
<!--[if lte IE 9]>
{foreach from=$css_files[$css_uri] key=css_uriie9 item=mediaie9}
<link rel="stylesheet" href="{$css_uriie9|escape:'html':'UTF-8'}" type="text/css" media="{$mediaie9|escape:'html':'UTF-8'}" />
{/foreach}
<![endif]-->
{else}
<link rel="stylesheet" href="{$css_uri|escape:'html':'UTF-8'}" type="text/css" media="{$media|escape:'html':'UTF-8'}" />
{/if}
{/foreach}
{/if}
{if-isset($css_文件)}
{foreach from=$css\u files key=css\u uri item=media}
{如果$css_uri=='LTIE9'}
{else}
{/if}
{/foreach}
{/if}
我有1.4.7.3版本。我只有FTP访问权限,没有管理员面板,然后在header.tpl文件中搜索“css_文件”和“js_文件”,并将其移动到footer.tpl。