This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Justified text in articles?


avatar
mishima 144
From: -
Justified text in articles?

Is it possible to format text within articles with a ‘justified’ state so that that paragraphs look neat and tidy? If so, please could you let me know how this can be achieved? Thanks

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Justified text in articles?
avatar
Editor
0
From: -
Just add the <div align="justify"> ... </div> tags in both news_story and news_story_extended

news_story:
<div align="justify">{$insert['newsstory_story']}</div>


news_story_extended:
<div align="justify">{$insert['newsstory_story']}</div><br />

{$insert['newsstory_advertisement']}
<div align="justify">{$insert['newsstory_extendedstory']}</div>
1 Re: Justified text in articles?
avatar
OP 144
From: -
hehe Smiling Face works!

How about news too?
1 Re: Justified text in articles?
avatar
Editor
0
From: -
Sorry, should be <div align="justify"> and not <div align="justified"> Hushed Face
1 Re: Justified text in articles?
avatar
OP 144
From: -
This is what my code looks like:

<!-- Template: articles_pages -->
{$insert['article_toc']}<br />
<h1>{$insert['article_title']} {$insert['article_edit']} {$insert['article_rating_line']}</h1>
<h2>Posted by: {$insert['article_author']} ({$insert['article_extra3']}) on: {$insert['article_date']} [ <a href="https://www.contentteller.com/contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}pagesprinter{$insert['param_page']}{$insert['article_seo']},{$insert['articlepage_page']}.html" rel="nofollow">Print</a> | <a href="https://www.contentteller.com/contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}summary{$insert['param_page']}{$insert['article_seo']}.html">{$insert['article_comments']} comment(s)</a> ]</h2>

<div class="content">{$insert['article_teaserimage']}{$insert['articles_pages_title']}<div align="justified">{$insert['articlepage_text']}</div>{$insert['article_social']}</div>
<br />



Doesn't seem to do anything!
1 Re: Justified text in articles?
avatar
Editor
0
From: -
I see. You need to change the following template: articles_pages

Find: {$insert['articlepage_text']}

<div class="content">{$insert['article_teaserimage']}{$insert['articles_pages_title']}{$insert['articlepage_text']}{$insert['article_toc']}{$insert['article_social']}</div>


and replace it with: <div align="justified">{$insert['articlepage_text']}</div>

<div class="content">{$insert['article_teaserimage']}{$insert['articles_pages_title']}<div align="justified">{$insert['articlepage_text']}</div>{$insert['article_toc']}{$insert['article_social']}</div>
1 Re: Justified text in articles?
avatar
Editor
0
From: -
Can you post a link to an example?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.