Page 1 of 1

Trying to edit code, cannot find the file?

Posted: Tue Oct 02, 2012 1:05 pm
by megahuman
Hey guys,

Using opencart 1.5.4

A problem that is really doing my head in at the moment...

Okay so I'm trying to edit the styles of the category images. Here is a link to the pages, you can see ive styled the category images with the grey border and grey background behind the text of the categories.

Example: http://party.7design.com.au/index.php?r ... reproducts

However if you click on a category and go to the subcategories they don't include any style.

Example: http://party.7design.com.au/index.php?r ... ry&path=79

So I went to try style them, and I get to a div named "<div class="catbox">"

I cannot find this in ANY file...

Anyway anyone can tell me where I should be looking, I assumed it was in Template > product > category.tpl...

Hope somebody can help!

Re: Trying to edit code, cannot find the file?

Posted: Tue Oct 02, 2012 1:24 pm
by zuhenry
Hello,

You should try to style the file "stylesheet.css" directly instead of doing in-line styles.
path is: /catalog/view/theme/default/stylesheet/*.css - where default is your theme or default installation...
If you don't find the div you are trying to decorate, you can create one in here.

zh

Re: Trying to edit code, cannot find the file?

Posted: Tue Oct 02, 2012 1:29 pm
by megahuman
I am styling stylesheet directly, I'm just trying to find those particular divs for this page so I can give them new classes

Re: Trying to edit code, cannot find the file?

Posted: Tue Oct 02, 2012 1:44 pm
by zuhenry
Ok, then try using the following command, hope you are running under a linux or Apple server,
"grep -r catbox /path_to_your_OC_installationg"
for example, I did run it like this:
"grep -r catbox /catalog/*"

I didn't find anything by the way...

zh