Tutorial: Front-End Customization
Role: Journal Manager
Time: 20โ60 minutes
OJS Version: 3.5+
This tutorial covers the most common front-end customisations journal managers can make in OJS without technical development skills โ including logo, colours, custom CSS, navigation menus, and sidebars.
Before You Startโ
- You have Journal Manager access in OJS.
Step 1 โ Upload Your Logo and Faviconโ
- Go to Settings โ Website โ Appearance.
- Upload your Journal Logo (recommended: 200โ400px wide, PNG with transparent background).
- Upload a Journal Favicon (32ร32 px .ico or .png).
- Optionally upload a Journal Thumbnail (used in multi-journal site listings).
- Click Save.
Step 2 โ Choose or Switch Themeโ
- In Settings โ Website โ Appearance, scroll to Theme.
- Select a theme from the dropdown (only installed themes appear).
- Click Save and review the live site.
Available built-in themes include: Default, Health Sciences, and any installed community themes. See the Themes Reference for a full list.
To install additional themes:
- Site Administrator goes to Administration โ Plugin Gallery and installs a theme plugin.
Step 3 โ Customise Theme Colours (if supported)โ
Some themes offer colour configuration:
- In Settings โ Website โ Appearance, look for colour picker or accent colour options below the theme selector.
- Select your preferred colours.
- Click Save.
Step 4 โ Add Custom CSSโ
For style changes beyond theme settings:
- Create a
.cssfile with your overrides, e.g.custom.css:
/* Change header background */
.pkp_head_wrapper { background-color: #1a3a5c; }
/* Change link colours */
a { color: #1a5276; }
a:hover { color: #2e86c1; }
/* Adjust article title size */
h1.page_title { font-size: 1.8rem; }
/* Style the footer */
.pkp_structure_footer { background: #f0f0f0; padding: 20px; }
- In Settings โ Website โ Appearance, upload the file in the Custom Stylesheet field.
- Click Save.
CSS overrides survive OJS upgrades. Never edit theme files directly โ use a custom stylesheet instead.
Step 5 โ Edit Navigation Menusโ
Customise the navigation bar:
- Go to Settings โ Website โ Navigation Menus.
- Click Edit next to Primary Navigation.
- Drag and drop menu items to reorder.
- Click Add Item to add custom links (external URLs, static pages, etc.).
- Click Save.
Step 6 โ Add Sidebar Blocksโ
Use the Custom Block Manager plugin to add HTML content blocks to the sidebar:
- Enable the Custom Block Manager plugin in Settings โ Website โ Plugins.
- Go to Settings โ Website โ Appearance โ Sidebar.
- Click Add Block โ Custom Block.
- Enter a block title and paste your HTML content.
- Reorder blocks by dragging.
- Click Save.
Common uses: sponsor logos, social media links, indexing badges, journal statistics.
Step 7 โ Add Custom Header Contentโ
Use the Custom Header Plugin to inject HTML/JS into every page (e.g., a cookie banner, analytics scripts):
- Enable Custom Header in Settings โ Website โ Plugins.
- Click Settings next to the plugin.
- Paste your HTML in the header content area.
- Click Save.
Step 8 โ Edit Static Pagesโ
For custom "About", "Contact", or informational pages:
- Enable the Static Pages plugin.
- Go to Settings โ Website โ Plugins โ Installed Plugins โ Static Pages.
- Click Add Static Page.
- Enter a URL path (e.g.,
about-our-team), title, and content. - Add the page to your navigation menu (Step 5).
Troubleshootingโ
| Problem | Solution |
|---|---|
| CSS changes not applying | Clear browser cache; also clear OJS template cache via Administration โ Clear Template Cache |
| Logo not displaying correctly | Resize the image to the recommended dimensions; use PNG with transparency |
| Theme colours not saving | Ensure you are clicking Save in the Appearance settings, not just applying the theme |
| Custom block not appearing | Check the block is positioned in the sidebar layout; verify it is not restricted to certain pages |
Next Stepsโ
- Themes Reference โ full list of available OJS themes
- OJS Customization Guide โ advanced customisation including theme development
- Plugins Reference โ overview of plugins useful for customisation