Justify alignment for abstract

I want to change the alignment from left to justify for my abstract. In metadata box changed. But when i see the result, it still the same. Whatt file should i have to change?

Thanks.

1 Like

Hi @siskaamelia,

See e.g. this thread: OJS 3: Metadata appears again after saving

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

I was check config.inc.php and it shows like this

Which one that i have to change?

1 Like

Hi @siskaamelia,

Off the top of my head, you would have to add div[style] to the list. Beware that this will allow users to add arbitrarily-styled divs in user-submitted content.

Regards,
Alec Smecher
Public Knowledge Project Team

Oke. Massive thanks :slight_smile:

Sorry to interrupt, im facing same problem… did u mean we have to add like this?–> allowed_html = “a[href|target|title],em,strong,cite,code,ul,ol,li[class],dl,dt,dd,b,i,u,img[src|alt],sup,sub,br,p,div[style]”

i have done it but nothing happens

oh nvm… i got it… just add p[style]

thanks

I add div[style] in allowed_html in config.inc.php but We did not see changes.

try add p[style]…

Hello everyone
I had the same problem, and the quick and simple solution is to override th app stylesheet by a uploading a css file in the journal Setting > website > advanced : like that

.obj_article_details .abstract {
text-align: justify;
}
.obj_article_details .author_bios {
text-align: justify;
}
.obj_article_details .references {
text-align: justify;
}

css 1
For Health Sciences themes, the css classes are differents, so use the google chrome inspect element to find themes…

Best Regards

1 Like