Header Ads

PHP Projects: OJS 3.x Child themes download

Child Themes

When you create a custom theme, you can choose to have it extend a Parent Theme. A Child Theme will automatically load the templates and styles found in it's Parent Theme. This allows you to build a theme on top of a pre-existing theme.
Here are a few things you can do with a child theme:
  1. Override a parent theme's LESS variables to adjust colors and typography with just a few lines of code.
  2. Adjust the HTML code behind the single article template without having to create a complete theme.
  3. Modify the primary navigation menu while keeping all the other templates in place.
In previous iterations of OJS and OMP, you needed to build entirely stand-alone themes or edit an existing theme if you wanted to tailor the design. The biggest benefit to using Child Themes is that you can isolate your custom code. This means that you can more safely update the Parent Theme and the core application without overriding your custom code.
If you've built themes for popular content management systems like WordPress, you'll be familiar with the concept. But we handle things slightly differently. This section will show you how to modify the styles of a parent theme, add your own styles, override template files and more.

What's the difference between a Child Theme and a Parent Theme?

Nothing.
Child and Parent Themes are just regular theme plugins and don't entail anything special in how they're built. All themes, Child or Parent, use the same Theme API. You can learn more about the structure of a theme, and setting up your own custom theme, in What is a theme?.
Once you have a theme setup, you can use a little bit of extra code to designate another theme as a parent theme. You may recognize the following from the Theme Setup & Configuration guide.


Download here: Link 1

No comments

Powered by Blogger.