Jump to content

Help with products!


Guest htu

Recommended Posts

hello there,

im having some trouble that i cant seem to find a solution to. i have various products set up on my site, but the thumbnail images seem out of place. the lining is off and it makes the site look a bit sloppy. the site can be found here in case you need to see it:

http://metalgearapparel.com/store/index.php?_a=viewCat&catId=2

i want it to look "normal" like it is on this page:

http://metalgearapparel.com/store/index.php?_a=viewCat&catId=122

can anyone help me out?

thanks.

Link to comment
Share on other sites

It is because your images are different heights. You need to wrap the image in a div and set a height for it. Take the height of your largest thumb and use that (about 75px). On the shorter images, there will obviously be a larger gap between the bottom of it, and the text below.

Open skins/YOUR_SKIN_NAME/styleTemplates/content/viewCat.tpl and find this code

	<!-- BEGIN: sub_cats_loop -->

	<div class="subCat">

		<a href="index.php?_a=viewCat&amp;catId={TXT_LINK_CATID}" class="txtDefault"><img src="{IMG_CATEGORY}" alt="{TXT_CATEGORY}" border="0" title="{TXT_CATEGORY}" /></a><br />

		<a href="index.php?_a=viewCat&amp;catId={TXT_LINK_CATID}" class="txtDefault">{TXT_CATEGORY}</a>

	</div>

	<!-- END: sub_cats_loop -->




Wrap a div around the image link. You can also remove the <br /> tag, like so.


	<!-- BEGIN: sub_cats_loop -->

	<div class="subCat">

		<div style="height:75px"><a href="index.php?_a=viewCat&amp;catId={TXT_LINK_CATID}" class="txtDefault"><img src="{IMG_CATEGORY}" alt="{TXT_CATEGORY}" border="0" title="{TXT_CATEGORY}" /></a></div>

		<a href="index.php?_a=viewCat&amp;catId={TXT_LINK_CATID}" class="txtDefault">{TXT_CATEGORY}</a>

	</div>

	<!-- END: sub_cats_loop -->

Hope that helps

Lee

Link to comment
Share on other sites

catId 122 has no photos of the actual subCats, so all the 'noPhoto' imagery is the same and so all the subCats line up nice and neat. Not so with catId 2.

In your layout.css file at around line 121, add a CSS style for height: 110px;

That will mostly straighten things out, but doesn't move the text to the bottom of the subCat container. That is a different problem with a different solution.

I would recommend that you bulk edit your Category images (thumbs?) to all have a uniform "canvas size" (That is, don't resize the image to fit a specific dimension. Rather, add black pixels around the edge of the current image so that the new overall image dimension is the same across all images.)

Link to comment
Share on other sites

  • 2 months later...

Sorry for the extremely delayed response, but i wanted to come back and thank you guys for your help and advice. so again, THANK YOU! :D

also you mention that there might be a solution to move the text to the bottom of the image, if so, how would i go about doing that?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...