Jump to content

Need help editing product list layout


Recommended Posts

Hello I have a couple of questions about altering my product list layout, I hope someone might be able to answer for me

 

1. How do I alter the size of the box in which my products are displayed?

2. How do I edit the (heading+price) font size of my products?

 

See attachment for illustration:)

 

Edit:

I might also want to make the image always center within the box, if anyone could give me a tip about how to, thanks :)

post-320595-0-84172800-1327496213_thumb.jpg

Link to comment
Share on other sites

1. How do I alter the size of the box in which my products are displayed?

2. How do I edit the (heading+price) font size of my products?

styling rules you're looking for are in /themes/your theme/css/global.css (and friends). If you post an address I can give you more step-by-step. Turn off CCC for CSS if you do,
Link to comment
Share on other sites

I have tried editing so many things to see if it changes the way the products are displayed, also in the global.css without results, I would be really happy if you could take a quick look, eventhough its probably staring me right in the face

I've turned off ccc as you suggested:

http://sba-portfolio...p?id_category=6

 

-Please excuse the looks, its my first webshop

Link to comment
Share on other sites

change font size for heading (product_list.css, line 23):

 

replace

ul#product_list li a {
color: #000000;
text-decoration: none;
}

 

with

ul#product_list li a {
color: #000000;
text-decoration: none;
font-size:14px;
}

 

 

change font size for price (product_list.css, line 82):

 

replace

font-size: 170%;

 

with

font-size: 14px;

 

 

For altering size of the box you must change (product_list.css, line 3):

 

width: 29%;

  • Like 1
Link to comment
Share on other sites

Thank you very much for your help! I've managed now to edit the things I mentioned and it looks better now :D

 

But I noticed that I cant make the add to cart button smaller, or center it, without changing other buttons too, not to mention the text on it, any pointers on how to do this? (should I open a new topic for this new question?)

 

Edit: and! @ _Matis_ I saw your webshop, it rocks!

Link to comment
Share on other sites

You can try making temporary changes via the firebug addon before commiting any changes to the css files. Its the easiest and the accepted way of altering any css files. Or just use the built in developer tools in chrome or even newer firefox versions.

  • Like 1
Link to comment
Share on other sites

I've downloaded Firebug and I'm really surprised how easy it is to use, it pretty much solves all the problems I've been talking about in this thread :)

Apart from the button issue, for an example I've changed my product listing to a permanent grid view, so that I need to move the 'add to cart' buttons to center within the grid rather than the list they where made to be in.

So if I move the buttons to match the grid, the same 'add to cart' button on the single products page is moved aswell

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...