Help with styling issue
- Posted by andreg (2) Offline
Hi
I just purchased the mini front page extension. I am having an issue where the module (or the template) seems to strip out the text formatting on one page but is fine on an another? Can you help me figure this one out.
Here's the link to the page with proper formatting (birth and death dates are on 2 lines)
migrate.rodriguemontpetitfils.com/index.php/fr/
Here's the link to the page with stripped out formatting (birth and death dates are on 1 line)
migrate.rodriguemontpetitfils.com/index.php/fr/avis-de-deces
2 years 1 month ago #1
by andreg
I just purchased the mini front page extension. I am having an issue where the module (or the template) seems to strip out the text formatting on one page but is fine on an another? Can you help me figure this one out.
Here's the link to the page with proper formatting (birth and death dates are on 2 lines)
migrate.rodriguemontpetitfils.com/index.php/fr/
Here's the link to the page with stripped out formatting (birth and death dates are on 1 line)
migrate.rodriguemontpetitfils.com/index.php/fr/avis-de-deces
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5260) Offline
Hi Andreg, the difference that is visible to me is in the font family. Is that what you mean?
2 years 1 month ago #2
by TemplatePlazza
Please Log in or Create an account to join the conversation.
- Posted by andreg (2) Offline
Sorry i just saw your reply now. The font is not the issue. it seems that the line breaks for text are not being rendered. i basically want the text to show birth date on the first line and death date on the second.
example:
Naissance: 4 novembre 1926
Décès: 27 janvier 2023
right now its cramming all the text into a single line that then breaks at the end of the box (see capture)
I even tried to put them in a table and still doesnt work
I just noticed its doing the same for the pro version on the full obituaries page
(see capture 2)
1 year 10 months ago - 1 year 10 months ago #3
by andreg
example:
Naissance: 4 novembre 1926
Décès: 27 janvier 2023
right now its cramming all the text into a single line that then breaks at the end of the box (see capture)
I even tried to put them in a table and still doesnt work
I just noticed its doing the same for the pro version on the full obituaries page
(see capture 2)
Last edit: 1 year 10 months ago by andreg. Reason: pasted an image in the body of the text
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5260) Offline
Hmm I see, It's because the module stripes out all html tag on introtext.
There's a workaround by creating a template override btw. Please follow this video :
Then replace the line :with
1 year 10 months ago #4
by TemplatePlazza
There's a workaround by creating a template override btw. Please follow this video :
Then replace the line :
<?php
echo JHtmlString::truncate(strip_tags($item->introtext), $introtext_truncate); ?>
<?php
echo $item->introtext; ?>
Please Log in or Create an account to join the conversation.