X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to change category icon size in 4.7.x? (https://forum.x-cart.com/showthread.php?t=73360)

Katsu 01-01-2016 10:16 AM

How to change category icon size in 4.7.x?
 
Previously, QT wrote:
Quote:

'You should change the predefined sizes in the "include/func/func.image.php" script your skin.'

I do not see this file anywhere in 4.7. Are the icon parameters somewhere else now?

PhilJ 01-02-2016 02:05 AM

Re: How to change category icon size in 4.7.x?
 
In include/func/func.image.php

Find this code and adjust the width and height dimensions to your category icons...
Code:

        $result = array('width' => '16', 'height' => '16'); //Default value for 3rd party skins.
Then in tools > maintenance, re-generate the image cache.

Ideally those dimension values should be moved to the configuration, but that's how it's done for now.

Katsu 01-02-2016 08:39 AM

Re: How to change category icon size in 4.7.x?
 
But where do I find 'include/func/func.image.php'?

PhilJ 01-03-2016 12:53 AM

Re: How to change category icon size in 4.7.x?
 
You'll need to edit the file using an FTP client.

Katsu 01-03-2016 10:59 AM

Re: How to change category icon size in 4.7.x?
 
I know, but where do I find the file? I do not see a '/func/func.image.php' anywhere.

PhilJ 01-04-2016 12:46 AM

Re: How to change category icon size in 4.7.x?
 
include/func/func.image.php

Katsu 01-05-2016 10:49 AM

Re: How to change category icon size in 4.7.x?
 
Sorry - I was looking in the skin folder. I located the file 'include/...' in root. Only problem is, the larger icon now overlaps the category name. The new icon is only 32 x 32 - still very small.

Katsu 01-05-2016 10:53 AM

Re: How to change category icon size in 4.7.x?
 
I am wondering why XC would not have seen this and allowed for a larger icon. The default 16 x 16 is miniscule - virtually invisible on a handheld device, and as soon as you make it visible, it cuts into the category text. How could XC have overlooked this? (Minor rant.)


All times are GMT -8. The time now is 04:14 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.