Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Feb 2008
    Location
    Philadelphia
    Posts
    279
    Plugin Contributions
    3

    Default Have Product description NEXT to image in responsive

    I have modified the default responsive template in 1.5.6 and it is great except what I really want is when in desktop mode for the image to be on left with product description next to it. I should know what is controlling that "return" that places it on the line below but I can't locate it.

    Figured asking would solve it today versus me struggling
    Like this page...
    Attached Images Attached Images  

  2. #2
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Have Product description NEXT to image in responsive

    I can't help with the CSS that likely is involved because I am on a mobile device, but generally what helps best is to provide a link to a specific product/page where a solution is sought. Then those that have access to the proper tools can easily advise how to incorporate the desired change for the desired view...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: Have Product description NEXT to image in responsive

    In templates/tpl_product_info_display.php

    find around line 75
    <!--bof Product description -->
    ... <code> ...
    <!--eof Product description -->

    and put it right under
    <div id="pinfo-right" class="group grids">

  4. #4
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Have Product description NEXT to image in responsive

    Quote Originally Posted by keneso View Post
    In templates/tpl_product_info_display.php

    find around line 75
    <!--bof Product description -->
    ... <code> ...
    <!--eof Product description -->

    and put it right under
    <div id="pinfo-right" class="group grids">
    Wouldn't that affect all display views, not just the desktop view as indicated in the OP?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,145
    Plugin Contributions
    11

    Default Re: Have Product description NEXT to image in responsive

    Quote Originally Posted by mc12345678 View Post
    Wouldn't that affect all display views, not just the desktop view as indicated in the OP?
    Succinct and correct.

    A link to the page is the best way to help us help you.

  6. #6
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: Have Product description NEXT to image in responsive

    Quote Originally Posted by mc12345678 View Post
    Wouldn't that affect all display views, not just the desktop view as indicated in the OP?
    Yep, sorry about misreading it.
    It will put the description before the price, attributes, etc. in smaller screens.

    HTML Code:
    <div id="prod-info-top">
    <div id="pinfo-left" class="group">
        image
    </div>
    <div id="pinfo-right" class="group grids">
        price
        attributes
        etc. 
    </div>
    </div>
    <div id="productDescription" class="productGeneral biggerText">
        product description
    </div>
    Last edited by keneso; 9 Jan 2021 at 01:40 AM.

  7. #7
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: Have Product description NEXT to image in responsive

    Try the moving with this css

    add display flex
    #pinfo-right {
    float: right;
    width: 55%;
    padding: 20px 0 0 0;
    display: flex;
    }
    and add order to
    #productDescription {
    padding: 0.5em;
    clear: both;
    margin: 20px 0;
    line-height: 150%;
    order: 5; /* the number based on your need, and other id/classes in the#pinfo-right */
    }

  8. #8
    Join Date
    May 2009
    Posts
    1,219
    Plugin Contributions
    2

    Default Re: Have Product description NEXT to image in responsive

    I should stop reading and posting after 2am

    The previous should have been

    add display flex

    #pinfo-right {
    float: right;
    width: 55%;
    padding: 20px 0 0 0;
    display: flex;
    }

    and add order to #productDescription
    in a conditional
    @media ... based on at what size you would like it to move

    #productDescription {
    padding: 0.5em;
    clear: both;
    margin: 20px 0;
    line-height: 150%;
    order: 5; /* the number based on your need, and other id/classes in the#pinfo-right */
    }

  9. #9
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Have Product description NEXT to image in responsive

    Quote Originally Posted by keneso View Post
    I should stop reading and posting after 2am
    That urge to be helpful always makes it difficult though, doesn't it? :)
    Go to bed...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #10
    Join Date
    Feb 2008
    Location
    Philadelphia
    Posts
    279
    Plugin Contributions
    3

    Default Re: Have Product description NEXT to image in responsive

    I will try these at least it gives me a target.

    Specific to this post I didn't get overly specific because its default out of box and we all see it on every install and the entire product layout is a problem.

    I want all the listings compacted into a tight horizontal space not spread out 1000px tall. This results in 4-8 products on a tablet screen 8-10 on a large laptop v current templates 2-3.

    So while I asked about description I was going to use that to modify the entire layout for screens over 7" and this was to point me to the code.

    Will advise if I figure a solution. I am a firm believer that Amazon knows what best strategies are so I try to maximize total content in a screen and it's absolutely working but to convert to this template I need to smush content some 80% v current layout. Even mobile takes up way way too much vertical space but that appears to be a simple solution of padding and margins etc v this more global restructure.

    Thanks very much! Appreciate the direction if anyone thinks of a better way LMK

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 How to wrap product description text beside and under image (Robbo Responsive Theme)
    By tgood31 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Oct 2013, 06:35 PM
  2. v150 How to move product description next to the image?
    By Zoran in forum Customization from the Admin
    Replies: 3
    Last Post: 26 Feb 2013, 02:35 AM
  3. v139h Have Category description and product listing next to each other
    By bravo14 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Mar 2012, 03:55 PM
  4. is it possbile to have product description to the right of product image?
    By TheBuz in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Apr 2009, 02:25 AM
  5. Product Description next to Image on Product Info Display
    By cshart in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Nov 2007, 04:02 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