-
AuthorPosts
-
hcardenas Friend
hcardenas
- Join date:
- February 2010
- Posts:
- 41
- Downloads:
- 12
- Uploads:
- 14
- Thanks:
- 20
- Thanked:
- 6 times in 3 posts
October 18, 2016 at 6:35 pm #977778Hi. I have a problem: the captions I add to the images are not showing in the article view.
In the other side, captions are showing in the thumbnails (frontpage and category page) which should not happen.
Could you pleas let me know what should I add to my custom.css to fix it?
-
Pankaj Sharma Moderator
Pankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 19, 2016 at 1:11 am #977858Hi
could u add the caption again ? its not showing on homepage , as in your screenshot : http://prntscr.com/cw26ekhcardenas Friendhcardenas
- Join date:
- February 2010
- Posts:
- 41
- Downloads:
- 12
- Uploads:
- 14
- Thanks:
- 20
- Thanked:
- 6 times in 3 posts
October 19, 2016 at 1:25 am #977861Thanks for your attention, Pankaj. I just added the caption again. Please check.
regards,
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 19, 2016 at 2:00 am #977917Hi
You can show caption with below solution
Open file "/html/layouts/joomla/content/image/intro.php" in template "ja_hotel"
Finddefined('_JEXEC') or die;
replace it with
defined('JPATH_BASE') or die; JHtml::_('behavior.caption');
save and check .
Best Regards
1 user says Thank You to Pankaj Sharma for this useful post
hcardenas Friendhcardenas
- Join date:
- February 2010
- Posts:
- 41
- Downloads:
- 12
- Uploads:
- 14
- Thanks:
- 20
- Thanked:
- 6 times in 3 posts
October 19, 2016 at 2:46 am #977932Hi Panjak.
It makes appear the caption in the Article View (which fixes one of the issues, thanks), but the caption still appears in the frontpage and in the Category page. How do I hide the caption there?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 19, 2016 at 3:36 am #977945Hi
You have to remove the caption from article > Images and links > Intro image > image caption .
Or add below code in custom.css file.magazine-item-media .img_caption p.img_caption {display:none;}
This will hide the caption from JA ACM article images .
1 user says Thank You to Pankaj Sharma for this useful post
hcardenas Friendhcardenas
- Join date:
- February 2010
- Posts:
- 41
- Downloads:
- 12
- Uploads:
- 14
- Thanks:
- 20
- Thanked:
- 6 times in 3 posts
October 19, 2016 at 4:51 am #977966Thanks again. It works, as you mentioned, for the JA ACM article images, but it is still showing caption in the Category page. Please look at this:
http://www.elinformador.com.co/guia/index.php/atractivos-turisticos/santa-marta
In fact, the idea is that the caption should show only in the Article View.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 19, 2016 at 5:25 am #977970Hi
There is no caption showing for image on this page : http://prntscr.com/cw3tqrhcardenas Friendhcardenas
- Join date:
- February 2010
- Posts:
- 41
- Downloads:
- 12
- Uploads:
- 14
- Thanks:
- 20
- Thanked:
- 6 times in 3 posts
October 19, 2016 at 12:48 pm #978147Plase check again. That was because I was doing some test in the custom.css to try to make dissapear capton from the Category view, using:
.img_caption p.img_caption {
display: none;
}It made dissapear the caption from the Category view, but also from the Article View, so it didn’t work as I expected.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
hcardenas Friendhcardenas
- Join date:
- February 2010
- Posts:
- 41
- Downloads:
- 12
- Uploads:
- 14
- Thanks:
- 20
- Thanked:
- 6 times in 3 posts
October 20, 2016 at 2:12 am #978313Hi Pankaj. Tahnk you very much!!, It worked fine. Now the caption is showing in article view, and hidden in Category View and Forntpage.
There’s a new issue related to caption, but I don’t know if I should open a new topic. Please let me know:
When there’s a caption in the image of an article, a extra space (p or br) appears below the image.. It appears in the article View and in the Frontpage (it doesn’t happen in the category view).
In the article view, the extra space is appearing below the caption.
In the Frontpage, the extra space is appearing below the image (since the caption is hidden with the the code you provided me)
In the Category view, there’s not extra space (the caption is hidden with the code you provided me).
Please look at the attached pictures. It only happens in the articles where there is a image with caption (hidden or not).
Could you please help me to eliminate that extra space?
Thanks in advacen,
- Pankaj Sharma Moderator
Pankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
hcardenas Friendhcardenas
- Join date:
- February 2010
- Posts:
- 41
- Downloads:
- 12
- Uploads:
- 14
- Thanks:
- 20
- Thanked:
- 6 times in 3 posts
October 20, 2016 at 3:25 am #978357Pankaj, it worked like a charm. I can’t thank you enough. Outstanding support!!
Thanks a lot,
Holman
1 user says Thank You to hcardenas for this useful post
AuthorPostsViewing 13 posts - 1 through 13 (of 13 total)This topic contains 12 replies, has 2 voices, and was last updated by hcardenas 8 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum
Captions not showing in articles
Viewing 13 posts - 1 through 13 (of 13 total)