To follow the steps below you will need to use Firefox and its Firebug plugin.
- With this tool selected, click on your category image (make sure that the image frame is highlighted)
- In this case, under the Styles you will see the part of your .css file with the width property that you will need to edit. For instance:
.category-view .spacer h2 a img
height: auto;
margin-top: 0 !important;
width: 130px;
.category-view .spacer h2 a img {
height: auto;
margin-top: 0 !important;
width: 56px;
- When you are satisfied with the result, right click on the .css file name (in our case it’s virtuemart.css) and select Copy Location.
- Then paste the location somewhere to see where your .css file is located on FTP. In our case the location is templates/theme380/css/virtuemart.css
- Connect to your FTP using your File manager or an FTP client (FileZilla).
- Navigate to the location of the .css file and open the file to edit.
- Look for the same you made changes to in Firebug (to see the lines, you can just copy the content of the file to Notepad++, Dreamweaver etc).
- Copy the line from Firebug and replace the corresponding in .css.
Save the changes.
- Refresh the sub-category page in your browser. You have done everything correctly, the result should be the same as in Firebug.
- Now, when the category images are re-sized, you may need to re-size their frames to eliminate the space around the images. Using Firebug, select the image frame.
Under Style you will find the width value responsible for the frame in the same .css file, for instance
.category-view .spacer, .category-view .category {
margin: 0 0 0 10px;
padding: 0 !important;
width: 175px;
- Change the frame size the same way the category image size was changed and re-fresh the browser window to see the changes.
How to change categories images dimensions in VirtueMart
No comments:
Post a Comment