AdorablePaws Posted August 13, 2015 Share Posted August 13, 2015 Is it possible to not show te category description on the mobile version? On the mobile Version I only would like the image to be shown without the text. (Prestashop 1.6.1 default theme) Link to comment Share on other sites More sharing options...
musicmaster Posted August 14, 2015 Share Posted August 14, 2015 Your theme has a "mobile" subdirectory where you can adapt those templates. Link to comment Share on other sites More sharing options...
AdorablePaws Posted August 14, 2015 Author Share Posted August 14, 2015 Thank you. I already looked in the mobile folder ( themes/default/mobile) , but all I could find there were index.php files. Thanks for the tip about the module. I'm really careful with modules. On my very first install of prestahshop it really messed up my shop and I had to start all over again. My shop is small and simple. I keep it to the provided modules and a handful I bought. Too scared to mess up my data again. Link to comment Share on other sites More sharing options...
musicmaster Posted August 14, 2015 Share Posted August 14, 2015 The default theme handles mobile stuff with css. Look in global.css for statements like "@media (min-width: 768px)". Link to comment Share on other sites More sharing options...
AdorablePaws Posted August 14, 2015 Author Share Posted August 14, 2015 Thank you. Looked in category.css and global.css, found responsive and mobile setting in global.css, but unfortunately not for category description. Oh well. Not to worry. It was only the main categories where I have the description overlaying the image on the mobile. I have to live with it I guess. It's no drama, just doesn't look nice Link to comment Share on other sites More sharing options...
musicmaster Posted August 14, 2015 Share Posted August 14, 2015 found responsive and mobile setting in global.css, but unfortunately not for category description. You could add a few lines yourself to the css. Just give the descriptions a class name and say that they shouldn't be displayed when the screen is smaller than a certain limit. An alternative is to edit your template files: {if isset($mobile_device) && $mobile_device} {* display nothing *} {else} {$product->description} {/if} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now