How to modify styles,layouts and themes

For discussion of ideas, functional requirements, interests regarding the Open Monograph Press.

Moderators: jmacgreg, John

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 21
Joined: Mon Oct 15, 2012 3:44 am

How to modify styles,layouts and themes

Postby thanasis » Mon Nov 12, 2012 4:33 am

Hi all,

I am interested in modifying the layout of omp,as well the theme and styles (if possible).I know that i can upload new style sheets from the management->settings->website->appearance tab.I would like to know if there is a way to modify the current layout, without having to start from scratch.I tried to locate the css and less files to make changes but they seem to be all over the place and i am lost.
Thanks in advance for any advice or suggestions.

Thanasis Kordas
University of Patras

Site Admin
Posts: 910
Joined: Tue Jan 10, 2006 6:20 am

Re: How to modify styles,layouts and themes

Postby JasonNugent » Tue Nov 13, 2012 7:24 am

Hi Thanasis,

There are two general areas for style modifications. Things that apply to PKP projects as a whole (grid structures, forms, etc) are over in lib/pkp/styles. Things that are OMP-specific (OMP pages, the catalog, etc) are in the base omp directory, in styles/. We've switched to using Less files and compiling them to the compiled.css file that shows up in the base styles/ directory. This makes the code a bit more manageable. You can get more info about less files here:

if you modify the .less files, you can rebuild them by running

Code: Select all

php tools/buildCss.php

from the lib/pkp directory. This will automatically replace the compiled.css file.


Return to “OMP Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests