Abstract layout OJS 3.1.0-1 Manuscript theme

hello, In our Manuscript theme Abstract does have layout that text starts immediatelly after title Abstract like here:
https://eap-iea.org/novi-ojs/index.php/eap/article/view/816

We would like to have it to be above the text of abstract like here:
http://foodandnutritionresearch.net/index.php/fnr/article/view/1296
Please advise how to do that.
Thanks

it seems that your abstract are saved as a pure text without any paragraph tag, so it shown as you mentioned.
you can edit the template file to solve this issue.
in the “/templates/frontend/objects/article_details.tpl” file edit line 149 and change it from

{$article->getLocalizedAbstract()|strip_unsafe_html}

to

<div>{$article->getLocalizedAbstract()|strip_unsafe_html}</div>

Great! Thanks a lot.

I would like to do the same for keywords. Can you post here which code to enter in order to get keyowrds displayed in the same way. Thanks in advance

in the same file line 135 to 141, put it inside dive tag too:

tl;dr
from:

<span class="value">
  {foreach from=$keywords item=keyword}
    {foreach name=keywords from=$keyword item=keywordItem}
      {$keywordItem|escape}{if !$smarty.foreach.keywords.last}, {/if}
   {/foreach}
 {/foreach}
</span>

to

<div> 
<span class="value">
  {foreach from=$keywords item=keyword}
    {foreach name=keywords from=$keyword item=keywordItem}
      {$keywordItem|escape}{if !$smarty.foreach.keywords.last}, {/if}
   {/foreach}
 {/foreach}
</span>
</div>
1 Like

Wonderful ! That looks great now.
Thanks

1 Like

see also: