Jump to content

Spent 5 hours fixining, still not found whats wrong


Recommended Posts

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

post-289904-0-10539000-1386800943_thumb.jpg

Edited by Yakub (see edit history)
Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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

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

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

×
×
  • Create New...