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

Disabling Categories List On Mobile

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 06-26-2018, 07:57 AM
 
cleverwise cleverwise is offline
 

Advanced Member
  
Join Date: Jun 2014
Posts: 74
 

Default Disabling Categories List On Mobile

Hello Community,

I was wondering if anyone knows a good way to disable the Categories list when viewing responsive theme in mobile.

I have manually created the layout and text I want for Categories called Departments. This is fine in desktop mode as the theme doesn't show the automatic Categories list. However in mobile mode the Categories list appears along with my Departments list.

I could do some tweaking but in order to allow for smooth theme upgrades I was checking with the community to see if there is a flag or setting I am missing.

Thanks!
__________________
Respectfully,

Jeremy

X-Cart 5.3 running on:
* Web server: Nginx with PHP-FPM via FastCGI (Opcache enabled)
* Database: Percona Server
* OS: CentOS
Reply With Quote
  #2  
Old 06-26-2018, 10:18 AM
 
mcupka mcupka is offline
 

eXpert
  
Join Date: Jan 2013
Posts: 204
 

Default Re: Disabling Categories List On Mobile

In the XC demo (https://demostore.x-cart.com), you'd hide it with this:

@media (max-width: 767px) {
#secondary-menu>.footer-menu>.leaf {
display: none;
} }

But that's Crisp White. Do you have a live link you can provide?
Reply With Quote
  #3  
Old 06-26-2018, 10:18 AM
 
cleverwise cleverwise is offline
 

Advanced Member
  
Join Date: Jun 2014
Posts: 74
 

Default Re: Disabling Categories List On Mobile

For the time being I modified the following file:

/skins/customer/layout/slidebar.twig

However this could easily be overwritten on a future update. Also yes I have backup copies (several).
__________________
Respectfully,

Jeremy

X-Cart 5.3 running on:
* Web server: Nginx with PHP-FPM via FastCGI (Opcache enabled)
* Database: Percona Server
* OS: CentOS
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 12:44 AM.

   

 
X-Cart forums © 2001-2020