Add different css file for RTL

hot to add different CSS file for RTL (arabic language) in the theme file

Hi @muaz_awed,

Edit registry/locales.xml and add a stylesheet="..." attribute to locale entry you want to adjust. If you come up with a stylesheet that you think might be helpful to other users, please consider submitting it back to the project!

Thanks,
Alec Smecher
Public Knowledge Project Team

Hi @muaz_awed,

Ah, I see you’re asking specifically about themes. If you want to only modify the theme you’re working with, you can call $templateMgr->addStyleSheet(...) in the theme class. You can see an example of this e.g. in the ORCID profile plugin: orcidProfile/OrcidProfilePlugin.inc.php at 28a9964b19c2e0bf5af4dfaa214286c0db31d5c9 · pkp/orcidProfile · GitHub

…but I do suspect the styles you want to change are more system-wide than theme-specific, in which case modifying registry/locales.xml is the better solution.

Regards,
Alec Smecher
Public Knowledge Project Team