X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   X-Cart 5 Remove Categories from Homepage body (https://forum.x-cart.com/showthread.php?t=68797)

cflsystems 03-20-2014 08:05 PM

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.

goodshop2u 04-17-2014 09:11 PM

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 ?

cflsystems 04-17-2014 09:36 PM

Re: X-Cart 5 Remove Categories from Homepae body
 
Tony for the sake of future searches please correct the title - "HomepaGe"

xim 04-18-2014 02:44 AM

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

BRDgirl 04-29-2014 07:47 AM

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?

totaltec 04-29-2014 08:08 AM

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.

BRDgirl 04-30-2014 06:48 AM

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.


totaltec 04-30-2014 07:18 AM

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.

BRDgirl 04-30-2014 07:48 AM

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!

tony_sologubov 05-07-2014 06:42 AM

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.


All times are GMT -8. The time now is 09:30 AM.

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