CSS doesn't work on OMP site page

Hi everyone!

I’m used to play a lot with css to customize the Default theme of my presses, avoiding relevant changes in template files.

In the press pages everithing is ok, but the main site page (the one with the press index) ignore any css instructions. I uploaded my css in Administration>Site settings>Appereance>Setup but nothing.

The browser console shows that my StyleSheet.css is not included in the page.

1

I use OMP 3.3.0.8, but the same in a test installation with OMP 3.2.1.1.

Is it a bug? What should I do?

Hi @Michevole,

I’m doubtful this is a bug. Often when a new stylesheet is uploaded, it is necessary to clear caches in order for changes to take affect. Could you try that? You should clear the template cache, and data cache (under the site admin settings - so you will need site admin privileges to do it (or get your site admin to do it for you): Learning Open Journal Systems 3.3 - Site Administration

Can you try that and see if it works?

-Roger
PKP Team

Hello @rcgillis and thanks for replying!

I did it and I just retried it a few minutes ago. Even deleting the template&data cache from OMP, or opening the page on a private browser, the result is the same. Css are not included in the page.

My technician told me that no relevant errors or warnings are shown from php console. It looks like the stylesheets are simply ignored, even if they’re uploaded and saved.

1

As I said, the problem is only in the index page. The same process works for the single contexts.
I tried it on two different OMP installations and it’s the same. I bet anyone could replicate the issue. :confused:

Hi again! Has anyone tried it?
I’m interested in knowing if I’m making a mistake somewhere…

Hi @Michevole,

How did you solve this problem? I have exactly the same problem.

Hello @diegomejia07,

I’m glad to hear someone else has the same problem because I really thought I was mad! (but obviously I’m sorry you experienced the same issue).

I don’t have a solution for it. I got a workaround creating a new blank press called “home” and using it as homepage for the installation, setting the auto-redirect to it on this page: /index.php/index/admin/settings.
CSS in each press works fine.

If your installation has only a single press you don’t need to create the “home” as I did, but you can just redirect to your main press.

Let me know if I was helpful and I hope someone can give more information about this bug.

Hi @rcgillis and @asmecher,

How can this problem be resolved?