仅在 osCommerce 主页上显示项目
我在
中有一个盒子广告,我已将其放入 index.php,但它几乎出现在所有其他页面中。我需要编辑或放入此框广告哪个文件,以便它仅在主页上可见,而在其他页面上不可见?
I have a box ad in a <div>
that I have put in index.php but it's showing up in almost all the other pages.
Which file do I need to edit or put this box ad in so that it is only visible on the home page and not on other pages?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
好吧,我找到了答案
Well i found the answer
给你的index.php的主体一个额外的类。例如
内容索引
。另外,为您的ad
-div 提供额外的样式元素:在您的 CSS 中,它应该类似于:
与父母和孩子一起工作。
但你为什么想要这个?如果不允许它可见,为什么它首先是 div 呢?
Give the body of your index.php an extra class. For example
contentindex
. Also, provide yourad
-div with an extra style element:And in your css it should be something like:
Work with parents and children.
But why do you want this? If it's not allowed to be visible, why is it the div there in the first place?
即使认为它不合适,您也可以编辑语言模板,因为它允许 HTML。
它位于 Catalog\includes\languages\english\index.php 您可以使用:
或类似的东西。
Even thought its not proper you can edit the language template since it allows HTML.
It's in catalog\includes\languages\english\index.php You could use:
Or something similar.
将其添加到目录文件夹中的index.php 文件的底部。以下
Add it to the bottom of the index.php file in the catalog folder. Below