Yakub Posted December 11, 2013 Share Posted December 11, 2013 (edited) I run a site Once I open it in smaller window, the layout changes. This is ok, but "CATEGORIES" shows up. The problem is I cannot find where to translate this word to the site language. I looked for every translation section, code, but found it nowhere. Template is: http://addons.prestashop.com/demo/FO5176.html Any clue? Thanks Edited December 12, 2013 by Yakub (see edit history) Link to comment Share on other sites More sharing options...
doekia Posted December 11, 2013 Share Posted December 11, 2013 It is in the translation of your menu. Translations > Installed modules > click your flag Click "Close all blocks" Click "Open all blocks" press CTRL + F type the texte Categories, next next until you find the one Link to comment Share on other sites More sharing options...
Yakub Posted December 11, 2013 Author Share Posted December 11, 2013 All translation sections (front, modules), where a word categories is, are filled. Did not help Link to comment Share on other sites More sharing options...
doekia Posted December 11, 2013 Share Posted December 11, 2013 I do not say they are not filled. I say one is filled with Categories 1 Link to comment Share on other sites More sharing options...
El Patron Posted December 11, 2013 Share Posted December 11, 2013 is this on your mobile theme? Link to comment Share on other sites More sharing options...
Radu Posted December 12, 2013 Share Posted December 12, 2013 I would also try and see inside your theme block categories tpl file, maybe indeed categories word is hardcoded inside the template A common mistake I make is that instead of writing: {l s='Categories'} I write {l s="Categories"} which at that time wasn't picked by the presta translator 1 Link to comment Share on other sites More sharing options...
Yakub Posted December 12, 2013 Author Share Posted December 12, 2013 OK, it was hardcoded in top menu tpl in theme folder. <div class="clear"></div><div class="main-mobile-menu"><div class="wrap-title"> <h4>Categories :</h4> My theme is responsive, but even if mobile theme is turned off (which is now) in theme administration, once the screen gets smaller, it totaly changes layout. Is it possible to turn this off to show always desktop size? Link to comment Share on other sites More sharing options...
Radu Posted December 12, 2013 Share Posted December 12, 2013 great that you found it if you check /themes/theme474/css/grid_prestashop.css you'll see this line: @media only screen and (min-width: 768px) and (max-width: 959px) { This is how the theme knows when to display another css, it's responsive. There are other ways to detect using some javascript code, you can also do it in PHP if the user uses a mobile device. However the effort it isn't justified, if you are not a developer, it's not straight forward. Link to comment Share on other sites More sharing options...
Yakub Posted December 12, 2013 Author Share Posted December 12, 2013 Radu, so you suggest to change these to values (min-width: 768px) and (max-width: 959px)? Link to comment Share on other sites More sharing options...
Radu Posted December 12, 2013 Share Posted December 12, 2013 no no, I just explained where the current code is. Changing the values will affect some of the mobile users as well I said you need to approach the issue differently not only using css which is out of my reach at this time to explain in detail Link to comment Share on other sites More sharing options...
Yakub Posted December 12, 2013 Author Share Posted December 12, 2013 thanks Link to comment Share on other sites More sharing options...
Recommended Posts