我使用prestashop 1.6.1.2多层选项。更改标题颜色多中心prestashop
我想更改每个店铺的标题颜色。
我使用相同的主题,因为重复不适用于当前主题。
在我加入header.tpl:
if {$shop_name=="myshop"} {literal}<style> .header-top { background-color: #d6644a; }</style>{/literal}{/if}
,我测试用if {$id-shop=="3"}
,但没有在头
我使用prestashop 1.6.1.2多层选项。更改标题颜色多中心prestashop
我想更改每个店铺的标题颜色。
我使用相同的主题,因为重复不适用于当前主题。
在我加入header.tpl:
if {$shop_name=="myshop"} {literal}<style> .header-top { background-color: #d6644a; }</style>{/literal}{/if}
,我测试用if {$id-shop=="3"}
,但没有在头
改变在你header.tpl改变这部分
<body{if isset($page_name)} id="{$page_name|escape:'html':'UTF-8'}"{/if} class="{if isset($page_name)}{$page_name|escape:'html':'UTF-8'}{/if}{if isset($body_classes) && $body_classes|@count} {implode value=$body_classes separator=' '}{/if}{if $hide_left_column} hide-left-column{else} show-left-column{/if}{if $hide_right_column} hide-right-column{else} show-right-column{/if}{if isset($content_only) && $content_only} content_only{/if} lang_{$lang_iso}">
与此包括店名在身体类
<body{if isset($page_name)} id="{$page_name|escape:'html':'UTF-8'}"{/if} class="{if isset($page_name)}{$page_name|escape:'html':'UTF-8'}{/if}{if isset($shop_name) && Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE')} {$shop_name|lower|replace:' ':'_'}{/if}{if isset($body_classes) && $body_classes|@count} {implode value=$body_classes separator=' '}{/if}{if $hide_left_column} hide-left-column{else} show-left-column{/if}{if $hide_right_column} hide-right-column{else} show-right-column{/if}{if isset($content_only) && $content_only} content_only{/if} lang_{$lang_iso}">
然后在你的CSS,你可以使用
.my_store .header {
background: red;
}
更好地与空间的方式
.shop_pro .header-top {
background: red;
}
是的,我有这个 - \t \t \t \t \t \t –
更好地之间。这样,与空间之间
.my_store .header {
background: red;
}
检查你页面源代码。应该是这样的,随着店铺名称
<!--[if IE 8]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body id="index" class="index my_store hide-left-column hide-right-column lang_en">
应该是这样的,随着店铺名称
<body id="index" class="index my_store hide-left-column hide-right-column lang_en">
我用这个模块来对每个店铺自定义CSS。它是有用的 https://dh42.com/free-prestashop-modules/prestashop-free-css-module/ 感谢您的建议 它正常工作与PrestaShop 1.6.1.2
我必须让所有的变化,我加在globla CSS CSS: .shop_pro.header顶{ 背景颜色:红色重要;} 但没有什么变化 –
我有同样的问题,我清除所有的缓存(的Prestashop和浏览器) –