figo Posted October 18, 2009 Share Posted October 18, 2009 你好,版主, 解决了一个问题, 又有一个新问题,关于在网站底部添加一个 “我要啦”计数器 如何添加? 很遗憾我不懂PHP语言。 Link to comment Share on other sites More sharing options...
21846657 Posted October 18, 2009 Share Posted October 18, 2009 你好,51.la计数器提供给用户的是js代码吗?如果是,那么你打开/themes/prestashop(或是你的主题文件夹)/footer.tpl,可以看到这样的代码。在我的注释里,加入计数器所提供的js代码就可以了。 {if !$content_only} <!-- Right --> {$HOOK_RIGHT_COLUMN} <!-- Footer --> {$HOOK_FOOTER} {/if} <!-- 在下面加入js代码 --> [removed] <!--// 我是js代码我是js代码我是js代码我是js代码我是js代码 //--> [removed] <!-- 在上面加入js代码 --> </body> </html> 在上述位置加入的代码,会呈现在每一个网站页面。也许你需要做一下排版工作,好让布局合理些。另外,我没用过这个计数器,不过,猜是js代码 :cheese: 你试试看。 Link to comment Share on other sites More sharing options...
21846657 Posted October 18, 2009 Share Posted October 18, 2009 Er...第一个[removed]是< script type=" text / javascript " > ;第二个[removed]是< / script >;都去掉空格。坛子不允许写javascript代码 Link to comment Share on other sites More sharing options...
figo Posted October 18, 2009 Author Share Posted October 18, 2009 谢谢你 通过你的方法搞定了。 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now