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.
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.
Last edited by vojager; 24 Jan 2011 at 05:00 PM.
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.
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?
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.
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.