OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



HOW-TO: Customize OJS

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
This forum is meant for general questions about the usability of OJS from an everyday user's perspective: journal managers, authors, and editors are welcome to post questions here, as are librarians and other support staff. We welcome general questions about the role of OJS and how the workflow works, as well as specific function- or user-related questions.

What to do if you have general, workflow or usability questions about OJS:

1. Read the documentation. We've written documentation to cover from OJS basics to system administration and code development, and we encourage you to read it.

2. take a look at the tutorials. We will continue to add tutorials covering OJS basics as time goes on.

3. Post a question. Questions are always welcome here, but if it's a technical question you should probably post to the OJS Technical Support subforum; if you have a development question, try the OJS Development subforum.

Re: HOW-TO: Customize OJS

Postby jmacgreg » Wed Apr 07, 2010 10:54 am

Hi Jamie,

You're right -- the PDF is not currently available as we'd move the documentation from Docbook to the wiki so that community members could update it freely, and I simply forgot to take the link down. I'll do so now. The community update experiment hasn't been all that successful, and we're contemplating moving some "canonical" documentation into an upcoming comprehensive Userguide, at which point it'll be available as PDF (and regular HTML) again; I'll most likely keep the info on the wiki as well, in case others do want to contribute.

Kol_Jaf, if you've created a custom theme as a plugin, you can upload it to plugins/themes. But I have a feeling this isn't what you did -- most likely, you created a new stylesheet, I'm guessing. Could you tell me exactly what you've created, and what you hope to change theme-wise?

Cheers,
James
jmacgreg
 
Posts: 4190
Joined: Tue Feb 14, 2006 10:50 am

Re: HOW-TO: Customize OJS

Postby martynas » Thu Dec 06, 2012 6:11 am

JohnGR wrote:Hello everyone!!

I read the customization wiki but I didn't find what I was looking for and I was hoping to find some help here.

I would like to add a container div that will hold the header, the content, the sidebar & the footer, so it's easier to create a fixed layout that is easy to manipulate and style. I was wondering if there is a way to do that.

Thanks in advance :)


Hi,

I'm new in OJS. I was searching to how to change header.tpl that div container will hold the header, the content, the sidebar & the footer. I tried to find posts on this forum, but I could not find.

If someone could link me to these posts or even to customized header.tpl file to download, I would be very appreciate.
martynas
 
Posts: 3
Joined: Thu Dec 06, 2012 5:55 am

Re: HOW-TO: Customize OJS

Postby emfitz » Wed May 01, 2013 1:34 pm

Hi there, I'm a CSS novice but would like to make some basic changes to our journal (colour, changing to a sans serif font, etc). Right now it's using a theme (Vanilla). I've reviewed all of the documentation in the wiki, but am still unclear about how to modify the stylesheets.

Is the only place to upload new stylesheets in the Journal Management dialog (at step 5.6)? Just as a trial, I downloaded the Vanilla .css, and then tried to upload it as a journal style sheet, but it looked distorted (even though I hadn't made any modifications). I would have assumed it would look the same as the theme, if I did this, but it didn't.

I've asked our IT dept who did the OJS install, but they're not very helpful unfortunately :( I'd like to understand the basics of this myself, if possible?

Any help or advice would be much appreciated!

Thanks, Emily
emfitz
 
Posts: 2
Joined: Wed May 01, 2013 1:24 pm

Re: HOW-TO: Customize OJS

Postby asmecher » Wed May 01, 2013 1:44 pm

Hi Emily,

The upload area in Journal Setup 5.6 is the best place to upload a stylesheet. Note, though that it'll be applied *in addition* to any theme you have selected, and since stylesheets can contain relative sizes, applying the same stylesheet twice may have unwanted effects -- think e.g. about a rule that says "increase fonts to 120% of their current size." Applying it twice will increase it yet again.

It's best to upload a stylesheet that contains only the changes you want to apply, rather than unnecessarily (or incorrectly) duplicating a bunch of other styles. If you're OK with the vanilla theme, but want to override some colours, just include those colours in your uploaded stylesheet.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9043
Joined: Wed Aug 10, 2005 12:56 pm

Re: HOW-TO: Customize OJS

Postby emfitz » Wed May 01, 2013 2:04 pm

Thanks for your quick reply! I guess I'm not quite clear on what I should name the style sheet I upload. Say for example, all I want to do is change the fonts in all sections of the Vanilla template to sans serif fonts. How do I go about this?

Also - a slightly unrelated question - is there a way you can alter the order and/or content of the items in the main menu bar (Home/About/User Home) etc?

Apologies if these are really basic questions, but I've been reading http://pkp.sfu.ca/wiki/index.php/Customizing_OJS and it doesn't really make sense to me, since it describes many different style sheets potentially used at any one time, but I can't see or access these from what I can tell.

Thanks so much for your help, Emily
emfitz
 
Posts: 2
Joined: Wed May 01, 2013 1:24 pm

Re: HOW-TO: Customize OJS

Postby asmecher » Wed May 01, 2013 2:11 pm

Hi Emily,

I'd suggest getting a hand from someone who has experience writing stylesheets. You won't be able to re-arrange the links (that'll require a template modification) but changing fonts in headings should be easy -- it's just a matter of identifying the divs in question and writing a rule for them. However, if you don't know how to write CSS selectors, it'll be Greek.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9043
Joined: Wed Aug 10, 2005 12:56 pm

Re: HOW-TO: Customize OJS

Postby csabbah » Sun Apr 27, 2014 12:44 am

Hi all,

Is there a possibility to display the items of the Name column in the list of users (or authors, reviewers, etc.) as Name, Firstname M(iddle name), instead as Firstname M(iddle name) Name ?

Thank you for your help.

Best.
Claude
csabbah
 
Posts: 9
Joined: Sat Feb 09, 2013 11:13 am

Re: HOW-TO: Customize OJS

Postby asmecher » Mon Apr 28, 2014 7:45 am

Hi Claude,

To change the way names are displayed, you'll need to change two functions:
  • For authors, lib/pkp/classes/submission/PKPAuthor.inc.php in the "getFullName" function
  • For users, lib/pkp/classes/user/PKPUser.inc.php in the "getFullName" function
Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9043
Joined: Wed Aug 10, 2005 12:56 pm

Previous

Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: No registered users and 4 guests