Forums / General Questions / Where's the html

Where's the html

Locked
Results 1 to 5 of 5
This thread is locked. New replies are disabled.
09 Aug 2007, 06:24
#1
katandmouse avatar

katandmouse

New Zenner

Join Date:
Aug 2007
Posts:
47
Plugin Contributions:
0

Where's the html

I'm new to this and terribly lost. Having to search through hundreds of scripts to find one little snippet of code is really frustrating.

Right now I would just like to add a style around the linked product name in the featured products. http://74.53.203.51/ I'd also like to add more info text there.

How is this done?

Isn't there simple html templates somewhere to do this? Everything seems to be embedded in php files and I can't even find any html there. Where's the html for me to edit these things?
09 Aug 2007, 06:42
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: Where's the html

No. Zen Cart is a very dynamic and flexible application and so there aren't any pure HTML templates. The pages are pulled together, and much of the HTML is generated, by PHP.

However, it sounds probably that you may not need edit HTML to style that link. Now that good design practise separates content (done with HTML) from presentation (managed by CSS), it may be that the stylesheet is a more appropriate place to add your styling. What specifically did you want to do?
14 Aug 2007, 22:46
#3
katandmouse avatar

katandmouse

New Zenner

Join Date:
Aug 2007
Posts:
47
Plugin Contributions:
0

Re: Where's the html

I want to add a style to the product name in the featured listing. The problem is there is not style assigment. I have to first make that assignment in the code before I can make the style in the CSS, but I don't know where to do that.

I wish Zen would add styles to all these things so that we can have the flexibility we want in the CSS without having to dig into the code.
14 Aug 2007, 22:58
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: Where's the html

No need to dig into code to style that. Try adding the following to your stylesheet to see
#featuredDefault a strong {color: pink; font-size:200%; font-style:oblique }


OK. I accept that this isn't the most obvious way to style that particular element, but there is usually a way.

More importantly, with each release of Zen Cart the IDs and classes move in the right direction. Too much at once and it would break people's carts.

However, adding tags and IDs to everything isn't the way to go. That would simply bloat the code unnecessarily. Semantically inspired markup, i.e. using XHTML as it is designed to be used, is a much better strategy, under which IDs and classes are needed and used only to differentiate and group tags where really needed.
14 Aug 2007, 23:14
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Posts:
21,876
Plugin Contributions:
6

Re: Where's the html

Alternatively, if the "featured" products you are talking about are the two under the "Other Sole Savior Pedicure Supplies" heading on your home page, this will work:

.centerBoxContentsFeatured a {color: #112233;}