I need to know how to create for instance a custom journal.tpl without change the core files.
I’m using the vanila theme and i created the core folder structure inside: vanila/templates/index/journal.tpl and nothing changes when i edit this file.
That is not default functionality in OJS2. I had this in my old OJS2 theme plugin that enabled me to change the template. I have seen other similar solutions and you could probably find them with a search.
In my old OJS2 theme I had that in templates/common/footer.tpl
Also after changing it, you maybe have to clear ojs file cache.
Edit: I uploaded my old OJS2 theme here: GitHub - ajnyga/tsvResponsive: Simple responsive OJS2.x theme
That was created before we decided to go with OJS3. That theme is actually not using custom templates at all, because in the end I accomplished all the required changes with CSS. The theme is responsive and it hides the left sidebar and turns the right sidebar into a footer.
I am trying put this code in my theme. I put in OJS that install in localhost, it works very good.
However, when i put in my OJS that already installed online on the server, this doesn’t work.
What do you think the problem?
Hard to say, are you seeing error in php error log? And what do you mean exactly when you say that it does not work? Do you mean that you have uploaded an edited template, but the changes are not visible? Maybe you need to clear the ojs cache first?
yes, i changed the template and not visible. I don’t know abut php error log. The site still show the original template. I cleared the cache in my browser, because i did not find any link in ojs 2 to clear the cache. In Ojs 3 it easy to found the link to clear the ojs cache.