View Single Post
  #6  
Old 10-23-2014, 05:32 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

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

Default Re: How do I change parts of the skin for mobile browsers only?

Quote:
Originally Posted by Dr. Bogger
Can I use this inside a template file?
PHP Code:
if (\XLite\Core\Request::isMobileDevice()) 

Yes, this is correct code.

Quote:
Is it possible to move/remove <div> sections using CSS?
If so, using what code?

Well, if CSS code can accomplish what you need, then you can do this. In order to register CSS code for mobile skin, you can use the condition mentioned earlier (if (\XLite\Core\Request::isMobileDevice())) in the method described here:
http://kb.x-cart.com/display/XDD/Adding+CSS+and+JS+files
__________________
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