Custom navigation in child theme


I wan to create custom child theme for OJS3 (based on
I added custom elements to navigation (I used static pages plugin and modified primaryNavMenu.tpl in templates/frontend/components and added translations to locale) but I wonder if my modifications will be overwrite by upgrading OJS in future? Is this possibile to make this custom navigation changes in child theme?

Thanks and have a nice day,

You just need to add a “templates” directory as a subdirectory of your theme plugin. Use the same folder structure as you have there: plugins/themes/yourtheme/templates/frontend/components/primaryNavMenu.tpl

OJS will then use your modified tpl file instead of the actual tpl.

1 Like