OJS 3.1 Dropdown menu in Arabic

I installed OJS 3.1, and we have a bilingual journal. The ABOUT sub menus are working fine in English but in Arabic the sub-menus are not showing. I tried all Navigation setting and across different browsers but still not working.

What can be the issue?

The web site

http://journals.cihanuniversity.edu.iq/index.php/cuejss/index

it is the style problem in the rtl mode.

edit the “/plugins/themes/default/styles/rtl.less” style file and add the fallowing line:

.pkp_navigation_primary ul {
left: auto;
right: auto;
}
.pkp_navigation_user ul {
left: auto;
right: auto;
}

remember to keep them inside body[dir=“rtl”] { … }

Thank you. This did not help the case I can see that the tags are already there. The only differences is right: -9999px, I replaced this with right: auto; but still the same.

.pkp_navigation_primary {

	ul {
		left: auto;
		right: -9999px;
		text-align: right;
	}

	[aria-expanded="true"] > ul {
		right: 0;
		left: auto;
	}
}

.pkp_navigation_user {
	text-align: left;

	li {
		text-align: right;
	}

	ul {
		left: auto;
		right: -9999px;
	}

	[aria-expanded="true"] > ul {
		right: auto;
		left: 0;
	}
}

are you sure ?
I test it on your website through browser inspector. and it work perfectly!!!

Capture

Yes that is right, it is working in Inspection but when I change the the data in

/plugins/themes/default/styles/rtl.less

It is not recorded. Am I looking at the correct file then?

This is how I did

.pkp_navigation_primary {

  ul {
  	left: auto;
  	right: auto;
  	text-align: right;
  }

  [aria-expanded="true"] > ul {
  	right: 0;
  	left: auto;
  }

}

.pkp_navigation_user {
text-align: left;

  li {
  	text-align: right;
  }

  ul {
  	left: auto;
  	right: auto;
  }

  [aria-expanded="true"] > ul {
  	right: auto;
  	left: 0;
  }

}

and are you delete the css files from the cache folder? its not applied until you delete the compiled css files which are located in the cache folder.

I solve some of rtl style problem of OJS3.1 and put them in the other less file, and import it at the end of rtl.less file. maybe its useful for you.

https://ufile.io/pvbf9

This solution still not in OJS 3.1 and we had to do this tempering file again

Hi @Dilan_Rostam,

Could you send in a pull request with the post changes using Github?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher

How do I send pull request please?

Thank you

Hi @Dilan_Rostam,

See e.g. the “Opening a Pull Request” section of How to Contribute to Open Source | Open Source Guides.

Regards,
Alec Smecher
Public Knowledge Project Team