Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2008
    Posts
    17
    Plugin Contributions
    0

    help question Product info below image & centered

    hi, im helping a friend build a new site and have everything almost the way she wants it apart from this:

    Is there anyway to have the product image with the product info directly underneath it (it keeps going to the right hand side of the image) and also have it all centered?

    since it is not my own site please pm if you need a link, thank you in advance for any help

  2. #2
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: Product info below image & centered

    Anything is possible... most things can be adjusted by changing the CSS, sometimes the templates can be changed...

    I suggest you use Firebug, an extension for firefox... with that you will be able to see the inner workings of CSS on the HTML and with a little time, figure out what needs to be adjusted.
    ~Steve~

  3. #3
    Join Date
    Aug 2008
    Posts
    17
    Plugin Contributions
    0

    Default Re: Product info below image & centered

    Hi Steve ty for replying, i have no idea how to edit the code, i guess i was hoping someone here might already know how to do it.

  4. #4
    Join Date
    Jun 2005
    Posts
    36
    Plugin Contributions
    0

    Default Re: Product info below image & centered

    Go into your \includes\templates\template_default\templates directory and make a copy of tpl_product_info_display.php. Put the copy in \includes\templates\YOURTEMPLATE\templates (where YOURTEMPLATE is the name if the template you are using).

    Next, edit the copied file (the one inside your template directory) by adding this line:
    Code:
    <br class="clearBoth" />
    after this line:
    Code:
    <!--eof Main Product Image-->
    This will make a full line break after the image and before the description, and should put the text below it. If it's not centered you'll probably need to do a CSS edit of some sort as well, but that should bring it below the image at least.

  5. #5
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Product info below image & centered

    you can also add this to the end of your stylesheet.css


    #productDescription {
    clear:left;
    text-align:center;
    }

    this will move product description only under the image and will center the text for you .

  6. #6
    Join Date
    Jun 2005
    Posts
    36
    Plugin Contributions
    0

    Default Re: Product info below image & centered

    Ah, I figured there was some way to do it with CSS, but I sure couldn't find one!


    As for centering the image, this will work:
    Code:
    #productMainImage {
    	width: 98%;
    	}
    It seems like there should be a better way to go about it, but nothing else I've tried seems to work...


    Also, this forum is infuriating! I've never in my life had a forum tell me I had an 'expired token' -- much less twice is a row!

  7. #7
    Join Date
    Jan 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: Product info below image & centered

    This was great for moving the description under the image, but now the price still lingers to the right of the image. How can I move that as well? Is there a way to do it using css as well?

    Thanks

  8. #8
    Join Date
    Jan 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: Product info below image & centered

    Answering my own question with what worked for me:


    #productName {
    clear:left;
    text-align:left;
    }


    #productPrices {
    clear:left;
    text-align:left;
    }

 

 

Similar Threads

  1. Layout change?: Product Image centered and attributes/descriptions/add to cart below
    By worshamdesigns in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 Dec 2010, 08:11 AM
  2. Move Add to Cart Below Product Price on Product Info Page
    By dave_nextexit in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 15 Apr 2008, 09:20 PM
  3. Centered Product Image
    By cate_kroft in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 6 Jan 2008, 03:36 AM
  4. Product Info Display (centered) Problem
    By Nipepusy in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Apr 2007, 08:55 AM

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