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

X-Cart 5 Remove Categories from Homepage body

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #11  
Old 03-20-2014, 08:05 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: X-Cart 5 Remove Categories from Homepae body

Quote:
Originally Posted by tony_sologubov
Hi!

Thanks for asking! First thing to try is to apply the following CSS code via the System Settings > Look & feel > Custom CSS section in your admin area:

Code:
ul.subcategory-list { display: none; }

Please, let me know if it works for you.

Note: this approach will hide the subcategories from all the pages, not from home page only.

I don't think "display:none" is a good practice to hide something unless it is being used to hide interactive element. This will make the element hidden for the user but it will still exist in the html code. Depending on content SE may consider the site is trying to serve different content to end users and bots (and Google for example will penalize if it thinks that's the case) or even think of it as spam...

If some element should not be shown on a page best to comment out the code or have conditional statement but to simply use display:none is not something you should recommend.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #12  
Old 04-17-2014, 09:11 PM
 
goodshop2u goodshop2u is offline
 

Member
  
Join Date: Jun 2011
Posts: 20
 

Default Re: X-Cart 5 Remove Categories from Homepae body

Quote:
Originally Posted by tony_sologubov
Hi!

Thanks for asking! First thing to try is to apply the following CSS code via the System Settings > Look & feel > Custom CSS section in your admin area:

Code:
ul.subcategory-list { display: none; }

Please, let me know if it works for you.

Note: this approach will hide the subcategories from all the pages, not from home page only.


How to hide the homepage categories only ?
__________________
X-Cart v5 Business
Reply With Quote
  #13  
Old 04-17-2014, 09:36 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: X-Cart 5 Remove Categories from Homepae body

Tony for the sake of future searches please correct the title - "HomepaGe"
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #14  
Old 04-18-2014, 02:44 AM
 
xim xim is offline
 

X-Cart team
  
Join Date: Nov 2004
Posts: 677
 

Default Re: X-Cart 5 Remove Categories from Homepae body

In 5.1 official release there will be special setting under "Catalog"->"Front page" section to define root category listing format: List | Icons | Hide

I hope you will review this feature in next 5.1 beta
__________________
Sincerely yours, Max Vydrin
Reply With Quote

The following 3 users thank xim for this useful post:
ADDISON (05-16-2014), kevfromwiganinlancashire (05-07-2014), RichieRich (04-18-2014)
  #15  
Old 04-29-2014, 07:47 AM
 
BRDgirl BRDgirl is offline
 

Advanced Member
  
Join Date: Feb 2014
Posts: 33
 

Default Re: X-Cart 5 Remove Categories from Homepage body

I have used Custom Skin and the PHP code to remove the categories from the homepage body - easy peasy (thanks Tony!). I would like to know how to remove the blank page space between my front page content and the footer menu...any suggestions?
__________________
Belinda Karls-Nace
Blue Ribbon Designs
X-Cart Business 5.2.5
Reply With Quote
  #16  
Old 04-29-2014, 08:08 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: X-Cart 5 Remove Categories from Homepage body

Quote:
Originally Posted by BRDgirl
I have used Custom Skin and the PHP code to remove the categories from the homepage body - easy peasy (thanks Tony!). I would like to know how to remove the blank page space between my front page content and the footer menu...any suggestions?
I'm sure you could do this with custom CSS. Do you have a link to the page in question? An image showing what you would like the result to be would be nice too.
__________________
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
  #17  
Old 04-30-2014, 06:48 AM
 
BRDgirl BRDgirl is offline
 

Advanced Member
  
Join Date: Feb 2014
Posts: 33
 

Default Re: X-Cart 5 Remove Categories from Homepage body

Here is an image of what I would like to remove - this is a screen shot of my homepage - I have quite a bit of blank space between my homepage content and the footer menu (I shaded it in the image) - I would like to remove it...
http://blueribbondesigns.com/xcart/var/theme/images/Screen%20shot%20shaded%20area.jpg

Quote:
Originally Posted by totaltec
I'm sure you could do this with custom CSS. Do you have a link to the page in question? An image showing what you would like the result to be would be nice too.
__________________
Belinda Karls-Nace
Blue Ribbon Designs
X-Cart Business 5.2.5
Reply With Quote
  #18  
Old 04-30-2014, 07:18 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: X-Cart 5 Remove Categories from Homepage body

Quote:
Originally Posted by BRDgirl
Here is an image of what I would like to remove - this is a screen shot of my homepage - I have quite a bit of blank space between my homepage content and the footer menu (I shaded it in the image) - I would like to remove it...
BRDgirl,
I have made a quick tutorial on tweaking the CSS to accomplish this: http://youtu.be/3FwWfadCvuw

Let me know if that helps.
__________________
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

The following 5 users thank totaltec for this useful post:
ADDISON (05-16-2014), BRDgirl (04-30-2014), kevfromwiganinlancashire (05-07-2014), qualiteam (05-05-2014), tartaglia (05-02-2014)
  #19  
Old 04-30-2014, 07:48 AM
 
BRDgirl BRDgirl is offline
 

Advanced Member
  
Join Date: Feb 2014
Posts: 33
 

Default Re: X-Cart 5 Remove Categories from Homepage body

Quote:
Originally Posted by totaltec
BRDgirl,
I have made a quick tutorial on tweaking the CSS to accomplish this: http://youtu.be/3FwWfadCvuw

Let me know if that helps.

You are a rock star!! This helped tremendously - I was making it more difficult than it needed to be - thanks for your help!
__________________
Belinda Karls-Nace
Blue Ribbon Designs
X-Cart Business 5.2.5
Reply With Quote

The following 4 users thank BRDgirl for this useful post:
kevfromwiganinlancashire (05-07-2014), qualiteam (05-05-2014), tony_sologubov (05-07-2014), totaltec (04-30-2014)
  #20  
Old 05-07-2014, 06:42 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

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

Default Re: X-Cart 5 Remove Categories from Homepae body

Quote:
Originally Posted by goodshop2u
How to hide the homepage categories only ?

In this case, you need to apply a simple change using Custom skin module. This change is described here:
https://docs.google.com/a/x-cart.com/document/d/1ZCwbHyqkklU1zNylERQnuD9U0JOlVPAwWarK9awU8yA/edit#heading=h.59ak5prm3pwh

Search for "How to hide category block from home page and keep it on other pages?" title.
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:04 AM.

   

 
X-Cart forums © 2001-2020