Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Mar 2008
    Posts
    27
    Plugin Contributions
    0

    help question Swap Images via Mouseover or Click Add-on: how to add CSS Style?

    Swap Images via Mouseover or Click Add-on:

    http://www.zen-cart.com/index.php?ma...roducts_id=311

    Is it possible to add some CSS Style attributes to additional images thumbnails in this add-on? (aligning them properly below the main image, setting border style, margin) The additional pics does not look good without some styling. If this possible, where to add the CSS rules?

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

    Default Re: Swap Images via Mouseover or Click Add-on: how to add CSS Style?

    It should be possible, but we can't give exact directions without seeing it live on your site.

    You always add CSS rules in your stylesheet (/includes/templates/your_template/css/stylesheet.css).

  3. #3
    Join Date
    Mar 2008
    Posts
    27
    Plugin Contributions
    0

    Default Re: Swap Images via Mouseover or Click Add-on: how to add CSS Style?

    Quote Originally Posted by gjh42 View Post
    It should be possible, but we can't give exact directions without seeing it live on your site.

    You always add CSS rules in your stylesheet (/includes/templates/your_template/css/stylesheet.css).
    demo site:
    http://sunstream.isgreat.org/index.p...products_id=27

    For some reason, image swap on Mouseover not work for me.
    I want place additional images under the main product image, align additional images left, set 1px border around small images, and around product viewport.

    Something like this
    sample

    Can the CSS rules be added into add-on itself?
    Attached Images Attached Images  
    Last edited by vojager; 24 Jan 2011 at 04:39 PM.

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

    Default Re: Swap Images via Mouseover or Click Add-on: how to add CSS Style?

    Can the CSS rules be added into add-on itself?
    No, you always add CSS rules to a stylesheet. It is possible to use inline styling, but not recommended.

  5. #5
    Join Date
    Mar 2008
    Posts
    27
    Plugin Contributions
    0

    Default Re: Swap Images via Mouseover or Click Add-on: how to add CSS Style?

    Quote Originally Posted by gjh42 View Post
    Can the CSS rules be added into add-on itself?
    No, you always add CSS rules to a stylesheet. It is possible to use inline styling, but not recommended.
    Some add-ons have own CSS files. The Product Additional Images is feature of Zen cart itself, not the specific template? So, have to adjust template and css to arrange additional images like in above sample?
    Last edited by vojager; 24 Jan 2011 at 05:00 PM.

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

    Default Re: Swap Images via Mouseover or Click Add-on: how to add CSS Style?

    Yes, "a" stylesheet - can be the main one or an individual mod's stylesheet.

    To get the additional images displayed just below the main image instead of at the bottom of the page, you first need to move the additional images block of code up in
    /includes/templates/your_template/templates/tpl_product_info_display.php.
    Then you can style #productAdditionalImages {} and .additionalImages {} as desired for fine-tuning.

  7. #7
    Join Date
    Mar 2008
    Posts
    27
    Plugin Contributions
    0

    Default Re: Swap Images via Mouseover or Click Add-on: how to add CSS Style?

    Quote Originally Posted by gjh42 View Post
    Yes, "a" stylesheet - can be the main one or an individual mod's stylesheet.

    To get the additional images displayed just below the main image instead of at the bottom of the page, you first need to move the additional images block of code up in
    /includes/templates/your_template/templates/tpl_product_info_display.php.
    Then you can style #productAdditionalImages {} and .additionalImages {} as desired for fine-tuning.
    by individual mod's stylesheet you mean the additional one which belongs to my_template?

    What is difference between #productAdditionalImages and .additionalImages?

    Some idea why swap images via Mouseover not work?

  8. #8
    Join Date
    Mar 2008
    Posts
    27
    Plugin Contributions
    0

    Default Re: Swap Images via Mouseover or Click Add-on: how to add CSS Style?

    Oops, I forgot I have set image swap via onclick event, sorry.

    Does these thumbnails are controlled by id #productAdditionalImages or class .additionalImages ? What is difference between them?

  9. #9
    Join Date
    Mar 2008
    Posts
    27
    Plugin Contributions
    0

    help question Re: Swap Images via Mouseover or Click Add-on: how to add CSS Style?

    In the default onMouseOver mode, clicking on additional images bring a popup window with the "large" version displayed, whereas this option not work for main product image. I want to make this on contrary, i.e. to disable popup option for additional images and enable it for main product image. How to implement this?
    Last edited by vojager; 25 Jan 2011 at 12:33 AM.

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

    Default Re: Swap Images via Mouseover or Click Add-on: how to add CSS Style?

    For that you need to talk to someone familiar with the mod's code.
    #productAdditionalImages is the id of the whole additional images group, while .additionalImages is the class for each additional image.

    "by individual mod's stylesheet you mean the additional one which belongs to my_template?"
    Either your template's stylesheet, or a stylesheet just for the mod, which may be in your template's /css/ folder.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Swap Images via MouseOver or Click
    By CheekyCockney in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 21 Jun 2011, 09:39 AM
  2. Installing "Swap Images via Mouseover or Click" add-on
    By vojager in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Jan 2011, 02:53 AM
  3. Modifying Swap Images via MouseOver or Click Add On
    By nosleephotel in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Oct 2008, 09:18 PM
  4. Swap Images via MouseOver or Click
    By jewelrylady in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 14 Jul 2006, 05:34 AM
  5. Swap Images via MouseOver or Click
    By Sc0tt in forum Basic Configuration
    Replies: 3
    Last Post: 11 May 2006, 12:20 AM

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