Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2007
    Posts
    47
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Aug 2007
    Posts
    47
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default 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.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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;}

 

 

Similar Threads

  1. Replies: 3
    Last Post: 5 Sep 2012, 10:08 AM
  2. where's the dang html?
    By ilsita in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 Oct 2009, 06:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg