Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How to change category icon size in 4.7.x?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-01-2016, 10:16 AM
 
Katsu Katsu is offline
 

eXpert
  
Join Date: Jun 2012
Posts: 349
 

Default 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?
__________________
4.7.7
Light Responsive
Reply With Quote
  #2  
Old 01-02-2016, 02:05 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default 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.
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
Katsu (01-02-2016)
  #3  
Old 01-02-2016, 08:39 AM
 
Katsu Katsu is offline
 

eXpert
  
Join Date: Jun 2012
Posts: 349
 

Default Re: How to change category icon size in 4.7.x?

But where do I find 'include/func/func.image.php'?
__________________
4.7.7
Light Responsive
Reply With Quote
  #4  
Old 01-03-2016, 12:53 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: How to change category icon size in 4.7.x?

You'll need to edit the file using an FTP client.
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
Katsu (01-03-2016)
  #5  
Old 01-03-2016, 10:59 AM
 
Katsu Katsu is offline
 

eXpert
  
Join Date: Jun 2012
Posts: 349
 

Default 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.
__________________
4.7.7
Light Responsive
Reply With Quote
  #6  
Old 01-04-2016, 12:46 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: How to change category icon size in 4.7.x?

include/func/func.image.php
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
Katsu (01-05-2016)
  #7  
Old 01-05-2016, 10:49 AM
 
Katsu Katsu is offline
 

eXpert
  
Join Date: Jun 2012
Posts: 349
 

Default 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.
__________________
4.7.7
Light Responsive
Reply With Quote
  #8  
Old 01-05-2016, 10:53 AM
 
Katsu Katsu is offline
 

eXpert
  
Join Date: Jun 2012
Posts: 349
 

Default 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.)
__________________
4.7.7
Light Responsive
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:24 PM.

   

 
X-Cart forums © 2001-2020