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

Category/Sub-Category layout change

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 11-13-2014, 02:59 AM
 
kokeyuk1 kokeyuk1 is offline
 

Member
  
Join Date: Jul 2013
Posts: 24
 

Default Category/Sub-Category layout change

Hi,

Just a quick question on the layout of the category and sub cat pages, currently we are using the Nobleese theme, and it has the icons listed in a row of 3 with quite a lot of padding.

Just wondering if there is an option or setting to change this to being listed to something like 5/6 in a row?

Or is a Custom CSS change needs to be added in.

Thanks for any help.

The link is http://powerpartsuk.com/Air-Filters for our intial test sub page.
__________________
WBK3p2snmcUwpP0V1MtfpCuV6qUAD282
Reply With Quote
  #2  
Old 11-13-2014, 03:28 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Category/Sub-Category layout change

There is no setting for this that I am aware of. As you say, needs custom CSS or HTML changes.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 11-13-2014, 05:49 AM
 
kokeyuk1 kokeyuk1 is offline
 

Member
  
Join Date: Jul 2013
Posts: 24
 

Default Re: Category/Sub-Category layout change

Any ideas where to begin with this?

Have changed a few of the padding settings and image size settings using Firefox Inspect Element (experimenting), but the only changes made are to each individual picture.
__________________
WBK3p2snmcUwpP0V1MtfpCuV6qUAD282
Reply With Quote
  #4  
Old 11-13-2014, 05:50 AM
 
kokeyuk1 kokeyuk1 is offline
 

Member
  
Join Date: Jul 2013
Posts: 24
 

Default Re: Category/Sub-Category layout change

Any ideas where to begin with this?

Have changed a few of the padding settings and image size settings using Firefox Inspect Element (experimenting), but the only changes made are to each individual picture.

EDIT: Thanks for the reply BTW!
__________________
WBK3p2snmcUwpP0V1MtfpCuV6qUAD282
Reply With Quote
  #5  
Old 11-13-2014, 06:28 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Category/Sub-Category layout change

Check this reply: http://forum.x-cart.com/showpost.php?p=378415&postcount=31
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote

The following 2 users thank tony_sologubov for this useful post:
kokeyuk1 (11-14-2014), totaltec (11-13-2014)
  #6  
Old 11-13-2014, 11:57 PM
 
kokeyuk1 kokeyuk1 is offline
 

Member
  
Join Date: Jul 2013
Posts: 24
 

Default Re: Category/Sub-Category layout change

Hi Tony,

thanks for the reply, that sounds exactly what we need. However when i apply that code to the custom CSS nothing happens?

I've literally just copied and pasted it to the bottom of the code already there, is there anything else i need to do?

EDIT:

Got it working for products, but need help applying the same rules for the sub category pages, would something like this work?

ul.subcategory.grid-list li.subcategory-cell.box-subcategory {
width: 20%;
}

ul.subcategory.grid-list li.subcategory-cell:nth-child(2n) + li.subcategory-cell{
clear: none;
}

ul.subcategory.grid-list li.subcategory-cell:nth-child(3n) + li.subcategory-cell{
clear: none;
}

ul.subcategory.grid-list li.subcategory-cell:nth-child(4n) + li.subcategory-cell{
clear: none;
}
__________________
WBK3p2snmcUwpP0V1MtfpCuV6qUAD282
Reply With Quote
  #7  
Old 11-17-2014, 05:34 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Category/Sub-Category layout change

Try this code:

Code:
ul.subcategory-view-icons.subcategory-list.grid-list li { width: 20%; } ul.subcategory-view-icons.subcategory-list.grid-list li:nth-child(2n) + li { clear: none; } ul.subcategory-view-icons.subcategory-list.grid-list li:nth-child(3n) + li { clear: none; } ul.subcategory-view-icons.subcategory-list.grid-list li:nth-child(4n) + li { clear: none; }
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote

The following user thanks tony_sologubov for this useful post:
kokeyuk1 (11-21-2014)
  #8  
Old 11-21-2014, 03:01 AM
 
kokeyuk1 kokeyuk1 is offline
 

Member
  
Join Date: Jul 2013
Posts: 24
 

Default Re: Category/Sub-Category layout change

Thanks Tony!
__________________
WBK3p2snmcUwpP0V1MtfpCuV6qUAD282
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 02:54 PM.

   

 
X-Cart forums © 2001-2020