vvucic
March 28, 2018, 8:46pm
1
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>
vvucic
March 29, 2018, 9:44am
4
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
vvucic
March 29, 2018, 10:58am
6
Wonderful ! That looks great now.
Thanks
1 Like