End of Support for Joomla 3 - Forum closed
[SOLVED] JP Host, Joomla 3.9.10: - Captions
Hello together,
I have the problem, that my captions are not visible in the frontend. Maybe anyone can help?
In the attachement you will see, where I fill in these captions...
Tanks a lot ind advance for your help.
I have the problem, that my captions are not visible in the frontend. Maybe anyone can help?
In the attachement you will see, where I fill in these captions...
Tanks a lot ind advance for your help.
by 666-x
Attachments:
Please Log in or Create an account to join the conversation.
- joomlaplates
- Offline
- Moderator
- Posts: 8807
- Thank you received: 1732
Replied by joomlaplates on topic JP Host, Joomla 3.9.10: - Captions
Posted 4 years 9 months ago #25648
Basically our themes are not supporting "captions" anymore.
But you can enable the captions with editong the php file
Edit the article.php (/templates/jp-your theme/layouts).
Changed
But you can enable the captions with editong the php file
Edit the article.php (/templates/jp-your theme/layouts).
Code:
<?php if ($image && $image_alignment != 'none') : ?>
<?php if ($url) : ?>
<a class="uk-align-<?php echo $image_alignment; ?>" href="<?php echo $url; ?>" title="<?php echo $image_caption; ?>"><img src="<?php echo $image; ?>" alt="<?php echo $image_alt; ?>"></a>
<?php else : ?>
<img class="uk-align-<?php echo $image_alignment; ?>" src="<?php echo $image; ?>" alt="<?php echo $image_alt; ?>" title="<?php echo $image_caption; ?>">
<?php endif; ?>
<?php endif; ?>
Changed
Code:
<?php if ($image && $image_alignment != 'none') : ?>
<?php if ($url) : ?>
<a class="uk-align-<?php echo $image_alignment; ?>" href="<?php echo $url; ?>" title="<?php echo $image_caption; ?>"><img src="<?php echo $image; ?>" alt="<?php echo $image_alt; ?>"></a>
<?php else : ?>
<div class="uk-align-<?php echo $image_alignment; ?>"> <img src="<?php echo $image; ?>" alt="<?php echo $image_alt; ?>">
<?php if ($image_caption != '') { ?>
<p style="max-width:450px";><?php echo $image_caption; ?></p>
<?php } ?></div>
<?php endif; ?>
<?php endif; ?>
Dokumentation:
www.joomlaplates.de/dokumentation.html
www.joomlaplates.de/dokumentation.html
by joomlaplates
Please Log in or Create an account to join the conversation.
Hello Joomlaplates,
thanks for you answer. Because aI had no artcle.php I createdt the file and filled in your code.
So now I can see the image with the caption but I cannot see anymore the text next to it.
I have the following php files in the layout folder: theme.config, theme, widget. Maybe someone more is missing?
thanks for you answer. Because aI had no artcle.php I createdt the file and filled in your code.
So now I can see the image with the caption but I cannot see anymore the text next to it.
I have the following php files in the layout folder: theme.config, theme, widget. Maybe someone more is missing?
by 666-x
Attachments:
Please Log in or Create an account to join the conversation.
- joomlaplates
- Offline
- Moderator
- Posts: 8807
- Thank you received: 1732
Replied by joomlaplates on topic JP Host, Joomla 3.9.10: - Captions
Posted 4 years 9 months ago #25662
Sorry you need ofc the article.php in the layouts folder
1.) Copy the file from the template folder
..\warp\systems\joomla\layouts\article.php
to
..\layouts
After that you can edit the article.php like I shown above
1.) Copy the file from the template folder
..\warp\systems\joomla\layouts\article.php
to
..\layouts
After that you can edit the article.php like I shown above
Dokumentation:
www.joomlaplates.de/dokumentation.html
www.joomlaplates.de/dokumentation.html
by joomlaplates
The following user(s) said Thank You: 666-x
Please Log in or Create an account to join the conversation.
Replied by 666-x on topic [SOLVED] JP Host, Joomla 3.9.10: - Captions
Posted 4 years 9 months ago #25672
Problem solved.
by 666-x
Please Log in or Create an account to join the conversation.
Thanks a lot, now it is working )
by 666-x
Please Log in or Create an account to join the conversation.
Moderators: joomlaplates