Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Feb 2009
    Posts
    861
    Plugin Contributions
    0

    Default Image size when displaying all

    It is probably something super simple but there are so many settings that I am a bit lost.
    When displaying all products, where do I set the size of the images? They are currently tiny and I feel they should be a bit larger to help the viewer.

    Here is my page: http://creationcassel.com/store/inde...e=products_all
    It is probably set by default, so I don't know where to change that.

    Thanks.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,489
    Plugin Contributions
    88

    Default Re: Image size when displaying all

    That image-size is being controlled by your template's responsive.css, line 13:
    Code:
    img{max-width:100%;height:auto;border:0;}
    I had success changing the 100% to 200%, but if you do that you'll want to create a separate, page-specific, CSS file named products_all.css in your template's /css directory. In that file, use the following (and edit for the required sizing):
    Code:
    #allProductsDefault a img { max-width: 200%!important; }
    You need to !important that style, since the responsive.css loads at the very end and will cause any change you make in that page-specific styling to revert to its styles.

    P.S. You should also address the HTML validation issues on that page.

  3. #3
    Join Date
    Feb 2009
    Posts
    861
    Plugin Contributions
    0

    Default Re: Image size when displaying all

    Thanks.
    On that separate file, do I make a duplicate of the initial one or only have that text on that file?

    P.S. You should also address the HTML validation issues on that page.
    Hum... what do you mean?

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Image size when displaying all

    HTML validation is a 3rd-party service that examines a web page's HTML structure and looks for badly-composed HTML, or HTML elements that are redundant. If it finds problems in the HTML it reports these problems, and as search engines look for the overall "quality" of the HTML output, it can seriously affect webpage ranking.

    SEE: https://validator.w3.org/
    20 years a Zencart User

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Image size when displaying all

    CORE zencart is unlikely to result in HTML validation errors. The core program will reliably deliver good HTML. However... a lot of add-ons and 3rd-party templates might not generate such clean HTML - and this is often where HTML validation problems are generated. If your site makes use of a lot of these add-ons, you are likely to find that they are responsible for HTML validation issues.
    20 years a Zencart User

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Image size when displaying all

    And also...

    If you use FIREFOX browser, with CHRIS PEDERICK'S WEBMASTER TOOLS, this has a HTML validator that will link to W3 and perform validations for you.
    20 years a Zencart User

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,489
    Plugin Contributions
    88

    Default Re: Image size when displaying all

    Quote Originally Posted by CaroleAs View Post
    Thanks.
    On that separate file, do I make a duplicate of the initial one or only have that text on that file?


    Hum... what do you mean?
    The file (products_all.css) doesn't ship with the base Zen Cart. If that file does exist (/includes/templates/responsive_cassel/css/products_all.css), then create it with that single line. If the file does exist, just add that line at the bottom.

    Like @schoolboy indicated, the validation is a free service. Just copy and paste a link from your store into the form at https://validator.w3.org and it will show you what's up.

  8. #8
    Join Date
    Feb 2009
    Posts
    861
    Plugin Contributions
    0

    Default Re: Image size when displaying all

    Quote Originally Posted by lat9 View Post
    The file (products_all.css) doesn't ship with the base Zen Cart. If that file does exist (/includes/templates/responsive_cassel/css/products_all.css), then create it with that single line. If the file does exist, just add that line at the bottom.
    Thanks. That should be easy, even for me :)

    Quote Originally Posted by lat9 View Post
    The file (products_all.css) doesn't ship with the base Zen Cart. If that file does exist
    Like @schoolboy indicated, the validation is a free service. Just copy and paste a link from your store into the form at https://validator.w3.org and it will show you what's up.
    Although this was not the intent of this thread, I ran that as suggested and got half a dozen of these:
    The type attribute is unnecessary for JavaScript resources.
    Is that something to be concerned with?

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,489
    Plugin Contributions
    88

    Default Re: Image size when displaying all

    Quote Originally Posted by CaroleAs View Post
    Thanks. That should be easy, even for me :)



    Although this was not the intent of this thread, I ran that as suggested and got half a dozen of these:
    The type attribute is unnecessary for JavaScript resources.
    Is that something to be concerned with?
    That message is just reminding you that since you're using an HTML5 template, it's no longer needed/desired to include type="text/javascript" on <script> tags. For now (until any HTML rules are tightened) you can safely ignore that.

  10. #10
    Join Date
    Feb 2009
    Posts
    861
    Plugin Contributions
    0

    Default Re: Image size when displaying all

    Quote Originally Posted by lat9 View Post
    That message is just reminding you that since you're using an HTML5 template, it's no longer needed/desired to include type="text/javascript" on <script> tags. For now (until any HTML rules are tightened) you can safely ignore that.
    Thanks.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Lightbox displaying thumbnails when larger image clicked
    By tini1709 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 4 Nov 2010, 05:04 PM
  2. photos all the same size in image handler 2
    By windwoman in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 11 Dec 2009, 09:54 PM
  3. product listing image same size for all?
    By Ariejester in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Aug 2007, 01:45 PM
  4. Displaying Category Actual Image Size
    By lionrhod in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 28 Dec 2006, 08:52 PM
  5. _LRG image displaying at Small Image size
    By sopretty in forum General Questions
    Replies: 11
    Last Post: 1 Oct 2006, 09:28 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR