Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    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?

    thanks a lot. Still one change: I want to move Products Description section below the Additional Product Images section(right after it). How to accomplish this correctly?
    Last edited by vojager; 25 Jan 2011 at 01:47 AM.

  2. #12
    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?

    You already have that. If you want the add to cart above the description, move its code block up in the file also, either just before or just after the additional images, whichever you want.

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

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

    I edited tpl_product_info_display.php template in
    /includes/templates/template_default/templates/tpl_product_info_display.php

    I moved Additional Product Images section to the top, and placed it right after the 'free ship icon' section:

    Code:
    ....
    <!--eof free ship icon  -->
    
    <!--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 -->
    <br class="clearBoth" />
    
     <!--bof Product description -->
    <?php if ($products_description != '') { ?>
    <div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
    <?php } ?>
    <!--eof Product description -->
    I added <br class="clearBoth" /> after the end of Additional Product Images section, since Product description text wrapped around images without it. Is this correct way?

    I did not added <br class="clearBoth" /> after 'free ship icon' section: is this correct also?
    Last edited by vojager; 25 Jan 2011 at 07:31 PM.

  4. #14
    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?

    What's correct is what works (as long as you don't create PHP or HTML errors in the process). If it is working well for you, that is all you need to do.

    You could have done without the added
    <br class="clearBoth" />
    and just added to your stylesheet
    #productDescription {clear: both;}

    Either way works.

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

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

    in default template after the 'Main Product Image' section goes 3 sections, 'Product Name', 'Product Price', 'free ship icon'. Does these 3 sections ('Product Name' ->'Product Price' ->'free ship icon') always will be displayed in one row, at the right side, irrespective of sections that will be located below them?
    Last edited by vojager; 28 Jan 2011 at 04:06 PM.

  6. #16
    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?

    You can change their location a bit with style rules in the stylesheet, or move them in the file if you want them in a different part of the page.

  7. #17
    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
    You can change their location a bit with style rules in the stylesheet, or move them in the file if you want them in a different part of the page.
    The currect location is OK. I just wanna make sure that these elements will always stay on the same positions/will not break #productGeneral layout after I placed 'Additional Product Images' right after the 'free ship icon' section. (I didn't want place 'Additional Product Images' just after the 'Main Product Image'section, as this moves Product Name and Price downwards, under the Additional Product Images).

 

 
Page 2 of 2 FirstFirst 12

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