pkp / pkp-lib

The library used by PKP's applications OJS, OMP and OPS, open source software for scholarly publishing.
https://pkp.sfu.ca
GNU General Public License v3.0
307 stars 447 forks source link

Site-wide stylesheet loads for every journal #5973

Open NateWr opened 4 years ago

NateWr commented 4 years ago

Describe the bug When a stylesheet is uploaded at Administration > Site Settings, that stylesheet is loaded for every journal not just the site-wide index page.

To Reproduce Steps to reproduce the behavior:

  1. Go to Administration > Site Settings > Appearance > Setup
  2. Upload a stylesheet
  3. Visit one of the site's journals and see that the stylesheet is loaded.

What application are you using? 3.2.0.x

Additional information Report in the forum.

NateWr commented 4 years ago

Feedback from a community member:

I think it is the right direction, but imagine it will be a pain for existing multijournal installs, because they are likely utilizing this or working around it.

kaitlinnewson commented 1 month ago

Another report related to this issue from the forum.

kaitlinnewson commented 1 month ago

If a site-wide stylesheet is needed, one solution could be the ability to upload two stylesheets in the admin area - one that will apply only to the index page, and one that gets applied across all contexts in the install.