[ojs] Updaing style sheet of several journals at once

Dears,

How can one apply a new CSS for several journals at once?
Can it be done via database and a SQL Query tweak ?

Thanks

Hi @Dani,

There are a few options:

  • Work with the journalStyleSheet setting in the journal_settings table. This is a serialized PHP object, but the format is pretty simple. I’d suggest looking at an example configured via the web interface and then following that for other journal_id values. (Note that you’ll have to flush the cache before changes you make will be seen on the front end – the quickest way to do that is to rm cache/*.php.
  • Create a theme plugin for these journals to use. Follow the examples in the plugins/themes area.
  • If you want all journals to use the same theme, use a site-wide CSS file (uploaded as Site Administrator).

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

how to locate journalStyleSheet

Hi @Pen2Print,

As stated above, it’s in the journal_settings database table.

Regards,
Alec Smecher
Public Knowledge Project Team