Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    35
    Plugin Contributions
    0

    Default Re: How to move additional images to the right of main product image

    The box #productAdditionalImages seem to have embbed "style width"

    In module additional_images.php, look for the line
    'style="width:' . $col_width . '%;"' and then empty it to '' (remove "style=width...")

    In the stylesheet, make sure you set #productMainImage to float left. So that #productAdditionalImages can go right. Don't forget to set "clear:both" for each additional image boxes.

    This work for me.

  2. #2
    Join Date
    Apr 2006
    Posts
    121
    Plugin Contributions
    0

    Default Re: How to move additional images to the right of main product image

    I get the feeling that this is exactly what I'm looking for. But where does this "clear:both" for each additional image boxes go?

  3. #3
    Join Date
    Sep 2006
    Posts
    35
    Plugin Contributions
    0

    Default Re: How to move additional images to the right of main product image

    I think this should fix your problem.
    #productAdditionalImages .additionalImages {clear:both;}

  4. #4
    Join Date
    Apr 2006
    Posts
    121
    Plugin Contributions
    0

    Default Re: How to move additional images to the right of main product image

    I'm using ZC1.3.0.2 and can't find a '#productAdditionalImages .additionalImages' defined in the CSS stylesheets. There is a .additionalImages in the stylesheet_new.css but it's grouped with a number of other styles.

    Do I create a new entry for #productAdditionalImages .additionalImages and remove .additionalImages from the group within the stylesheet_new or am I looking in the wrong place?

  5. #5
    Join Date
    Sep 2006
    Posts
    35
    Plugin Contributions
    0

    Default Re: How to move additional images to the right of main product image

    I think .additionalImages inside the group does nothing apart from alining text to 'center', you shouldn't worry about it. just create new style for it.

    Here is my style :

    #productMainImage {margin:5px 0; padding:0; width:70%;float:left;}
    #productAdditionalImages {margin:0; padding:5px 0; width:120px; }
    #productAdditionalImages .additionalImages {clear:both;}
    #productAdditionalImages a {text-decoration:none;}

  6. #6
    Join Date
    Apr 2006
    Posts
    121
    Plugin Contributions
    0

    Default Re: How to move additional images to the right of main product image

    Almost there. But the clearBoth tag also makes the first additional image wrap to the next line (under the main image again).

    When the clearBoth is removed three images (main mage and two additional images) show on the same line. That's great but now the I still have to force the second additional image to wrap underneath the first additional image.

    This is what is defined in the CSS right now:

    #productMainImage {float:left;}

    #productAdditionalImages .additionalImages {clear:both;}

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How to move additional images to the right of main product image

    There is more than one way to approach this issue and you began this thread by referencing php files.... and in the tpl_product_info_display.php file there is this code:
    Code:
    <!--bof Additional Product Images -->
    <?php
    /**
     * display the products additional images
     */
      require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
    <!--eof Additional Product Images -->
    and it is placed after many things that display before it. Moving it up after the main image entry was what I was leading to. and there are a few clear both statements in this file that call for a new line. You will have to insure that the additional images have space to be presented. Do this through sizing of your site and images no matter if you do this by code file or through css.

    As you seem close now you might continue with what you are doing or you might also look at the file??
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Additional Product images to the side of main image
    By kezan98 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Oct 2012, 01:48 AM
  2. v150 How to relocate main product image to the right?
    By johnn196703 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Apr 2012, 07:05 PM
  3. How do I show the main image as a thumbnail with the additional images?
    By rikahsdesign in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 24 Jan 2011, 03:45 AM
  4. Move Image on main page to the right
    By tclayla in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Nov 2009, 03:29 AM
  5. How to move product image to the right side?
    By rainmist in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Dec 2008, 05:00 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