End of Support for Joomla 3 - Forum closed

[SOLVED] JP Host, Joomla 3.9.10: - Captions

  • 666-x
  • 666-x's Avatar Offline Topic Author
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0

JP Host, Joomla 3.9.10: - Captions was created by 666-x

Posted 4 years 9 months ago #25638
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.
by 666-x
Attachments:

Please Log in or Create an account to join the conversation.

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).
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; ?>

Please Log in or Create an account to join the conversation.

  • 666-x
  • 666-x's Avatar Offline Topic Author
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0

Replied by 666-x on topic JP Host, Joomla 3.9.10: - Captions

Posted 4 years 9 months ago #25653
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?
by 666-x
Attachments:

Please Log in or Create an account to join the conversation.

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
The following user(s) said Thank You: 666-x

Please Log in or Create an account to join the conversation.

  • 666-x
  • 666-x's Avatar Offline Topic Author
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0

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.

  • 666-x
  • 666-x's Avatar Offline Topic Author
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0

Replied by 666-x on topic JP Host, Joomla 3.9.10: - Captions

Posted 4 years 9 months ago #25673
Thanks a lot, now it is working :O)
by 666-x

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2024 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License