Forums / Templates, Stylesheets, Page Layout / Product Image Position

Product Image Position

Locked

Views: 2,951

Results 1 to 20 of 26
This thread is locked. New replies are disabled.
24 Nov 2007, 9:27 PM
#1
wittymom avatar

wittymom

New Zenner

Join Date:
Sep 2005
Posts:
51
Plugin Contributions:
0

Product Image Position

I've searched for this and my terms are too general to find it.

I just want my image on the right-hand side instead of the left-hand side in product view.

I can't find the setting -- does it exist? If not, what template file is this in?

Pullin' me hair out!! ;)

Thanks!

Mommy Haven Forum for Women
http://www.mommyhaven.com/

"Every child comes with the message that God is not yet discouraged of man" --Tagore

24 Nov 2007, 10:29 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Image Position

If you're talking about the product info page (which shows details of a single product), try editing your /includes/templates/your_template/css/stylesheet.css to add

#productMainImage {float: right;}

Look for any other instances of #productMainImage and ensure that you are not being overridden elsewhere.

24 Nov 2007, 10:39 PM
#3
wittymom avatar

wittymom

New Zenner

Join Date:
Sep 2005
Posts:
51
Plugin Contributions:
0

Re: Product Image Position

Thank you! That's exactly what I needed. :)

Mommy Haven Forum for Women
http://www.mommyhaven.com/

"Every child comes with the message that God is not yet discouraged of man" --Tagore

4 Dec 2007, 7:25 PM
#5
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: Product Image Position

I added a border to all my main images and now the text is adjacent the image border on the right side of the image. How do I move the product info to the right?
I tried margin on the image and on the div id, but didn't help.

Jack

4 Dec 2007, 8:09 PM
#7
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: Product Image Position

Thanks! Here you go ---
http://www.artbeautiful.com/index.php?main_page=product_info&cPath=7_102&products_id=1622

FYI, I downloaded your Categories Dressing but haven't tried it yet. To tell the truth, the Zen C learning curve for me, a non-developer, has been no curve at all --- just a sheer vertical wall.

4 Dec 2007, 8:39 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Image Position

It was a wall for me for quite a while, too... eventually I found the forum and started learning how & where to edit things.

Your first problem with the image is that you put your customized #productMainImage declaration above the existing one, so the original margins overrode yours. Always check to see if a class or id has been used in the stylesheet already, and if so try to edit that instead of adding another instance.

4 Dec 2007, 10:15 PM
#9
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: Product Image Position

OK--done. What do I know?

Can you advise me on that table containing the product info? Do I need to create a new style for that to control the colors? If so, can you tell me the applicable .php?

Thanks.
J

5 Dec 2007, 8:16 AM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Image Position

You already have all the tags you need to control that table in your stylesheet (actually more than enough - you don't even need the .bodycopy).

You can style any or all of

#productDescription table { }
#productDescription tr { }
#productDescription td { }

with any CSS you want.

5 Dec 2007, 8:29 AM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Image Position

You can get rid of all the repeated
width="50%" align="left" valign="top" style="background-color: #F3F3F3;"
in the <td> tags, and put one declaration in your stylesheet that will control them all.```
#productDescription td {
width: 50%;
text-align: left;
vertical-align: top;
background-color: #F3F3F3;
}

5 Dec 2007, 3:33 PM
#12
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: Product Image Position

I can't figure how to get rid of those repeated declarations. What drives those? They are not in the stylesheet.css that I can find. Is it a .php file? I'm using Firebug, also. This area is in a form.

5 Dec 2007, 4:44 PM
#13
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Image Position

When you do a view source, everything you see in that part of the page (the whole table) is in the product description text. Did you copy & paste a manufacturer's description?

5 Dec 2007, 5:13 PM
#17
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Image Position

The product description is what you enter in the textbox when creating/editing a product. It is stored in the database, so you will never find it with the Developers Toolkit.

You could change the product description from```html

<table width="50%" border="0" cellpadding="1" cellspacing="2"> <tr> <td width="50%" align="left" valign="top" style="background-color: #F3F3F3;" class="bodycopy">Artist</td> <td width="50%" align="left" valign="top" style="background-color: #F3F3F3;" class="bodycopy">Degas</td>
		</tr>
		<tr>
			<td align="left" valign="top" style="background-color: #F3F3F3;" class="bodycopy">Item #</td>
			<td align="left" valign="top" style="background-color: #F3F3F3;" class="bodycopy">9542</td>
		</tr>
		<tr>
			<td align="left" valign="top" style="background-color: #F3F3F3;" class="bodycopy">Image Size</td>

			<td align="left" valign="top" style="background-color: #F3F3F3;" class="bodycopy">27.5X27.75</td>
		</tr>
		<tr>
			<td align="left" valign="top" style="background-color: #F3F3F3;" class="bodycopy">Poster Size</td>
			<td align="left" valign="top" style="background-color: #F3F3F3;" class="bodycopy">31.5X23.5</td>
		</tr>
		<tr>

			<td align="left" valign="top" style="background-color: #F3F3F3;" class="bodycopy">Price</td>
			<td align="left" valign="top" style="background-color: #F3F3F3;" class="bodycopy">29.95</td>
		</tr>
		<tr>
			<td align="left" valign="top" style="background-color: #F3F3F3;" class="bodycopy">Publication Type</td>
			<td align="left" valign="top" style="background-color: #F3F3F3;" class="bodycopy">Distributed</td>
		</tr>

		
		</table>
		<br>
		<br>
		<br>
		<br>
		Keywords: <span style="font-size:10px; color:#0000FF">Hills, Horse, Jockey, Plants, Animals</span>

tohtml

<table> <tr> <td>Artist</td> <td>Degas</td>
</tr>
<tr>
	<td>Item #</td>
	<td>9542</td>
</tr>
<tr>
	<td>Image Size</td>
	<td>27.5X27.75</td>
</tr>
<tr>
	<td>Poster Size</td>
	<td>31.5X23.5</td>
</tr>
<tr>
	<td>Price</td>
	<td>29.95</td>
</tr>
<tr>
	<td>Publication Type</td>
	<td>Distributed</td>
</tr>
</table> <br> Keywords: <span>Hills, Horse, Jockey, Plants, Animals</span> ```in conjunction with the stylesheet declarations``` #productDescription table { width: 50%; text-align: left; vertical-align: top; background-color: #F3F3F3; }

#productDescription td {
width: 50%;
padding: 2px;
}

#productDescription span {
margin-top: 6em;
font-size: 10px;
color: #0000FF;
}

5 Dec 2007, 9:10 PM
#18
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: Product Image Position

Thanks, Glenn. I didn't enter the product descriptions. Someone else did. How would I find the best procedure to edit this as you suggest? Am i actually looking for an html file or is this edited via the admin?

5 Dec 2007, 9:16 PM
#19
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Image Position

Admin > Catalog > Categories/Products > navigate to your product and click the "e" button on the right.

If you have an HTML editor active in your admin, you won't be able to see the code in the description window. Try turning it off if that is the case.

5 Dec 2007, 10:38 PM
#20
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: Product Image Position

I apologize, but are you suggesting I need to edit each of over 4000 products one at a time with this method? You make a statement below "and you would never need to enter the whole mass of code in descriptions again, which would also make it much easier to understand when looking at the raw text."

But, is this the only way to do this?? I hope I misunderstand. Would you clarify? I'm hoping there is a more global option.

Jack