Jump to content

Modifying blocktopmenu to support RTL and LTR


AppleEater

Recommended Posts

Hi,

I'm trying to fix blocktopmenu to load different CSS file when switching between LTR and RTL (on PS 1.5.2).

I added the following code in blocktopmenu.php, but it does'nt work. Anyone can help?

 

  
public function hookHeader($params)
{
 $language = new Language($cookie->id_lang);
 if ($language->is_rtl)
 {
  $this->context->controller->addCSS(($this->_path).'css/superfish-modified_rtl.css', 'all');
 }
 else
 {
  $this->context->controller->addCSS(($this->_path).'css/superfish-modified.css', 'all');
 }
}

Link to comment
Share on other sites

  • 3 years later...

Hi everyone,

i am Same from Germany and i would like to open an new Business but it dos not work, can you help me?

 

in my Webseit i have English, German and arabic language and i have the same Problem in top menu.

1. Can enyone tel me pls how can i make top menu(Categorie) in the left colon in English and in the right colon in arabic?

2. How can i make it RTL in arabic and LTR in Englisch

3. i would like to move the left colon to up near the picture in the top

4. in the Mobile webseit i have the same problem, what do i have to do?

this is the Link for the webseithttp

http://ramsis24.com/en/

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...