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?
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?
4
Answers
Well i found the answer
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?
Even thought its not proper you can edit the language template since it allows HTML.
It’s in catalogincludeslanguagesenglishindex.php You could use:
Or something similar.
Add it to the bottom of the index.php file in the catalog folder. Below