-
AuthorPosts
-
ssinha Friend
ssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
March 1, 2015 at 8:58 pm #561101Yes, those lines are there.
sitemistic4746 Developersitemistic4746
- Join date:
- February 2015
- Posts:
- 26
- Downloads:
- 1
- Uploads:
- 1
- Thanks:
- 2
- Thanked:
- 8 times in 3 posts
March 1, 2015 at 8:59 pm #561102I’m stumped, then. Sorry.
sitemistic4746 Developersitemistic4746
- Join date:
- February 2015
- Posts:
- 26
- Downloads:
- 1
- Uploads:
- 1
- Thanks:
- 2
- Thanked:
- 8 times in 3 posts
March 1, 2015 at 9:02 pm #561103I more idea if you want to check.
templates/ja_teline_v/html/com_content/category/default.php
Look for:
defined(‘_JEXEC’) or die;
JHtml::addIncludePath(JPATH_COMPONENT . ‘/helpers’);
JHtml::_(‘behavior.caption’);
1 user says Thank You to sitemistic4746 for this useful post
ssinha Friendssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
March 1, 2015 at 9:40 pm #561104Yes, it’s there. The full code in that file is:
defined(‘_JEXEC’) or die;
JHtml::addIncludePath(JPATH_COMPONENT . ‘/helpers’);
JHtml::_(‘behavior.caption’);
?>
<div class=”category-list<?php echo $this->pageclass_sfx;?>”><?php
$this->subtemplatename = ‘articles’;
echo JLayoutHelper::render(‘joomla.content.category_default’, $this);
?></div>
You’re right. We are both stumped. Either way, your doggedness in helping me is admirable. Wish the problem was solved but don’t sweat over it. Maybe one day when it’s on the live server, then we’ll worry about it. I truly appreciate your help, Sitemistic.
codger Friendcodger
- Join date:
- July 2008
- Posts:
- 90
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 18
- Thanked:
- 4 times in 1 posts
March 7, 2015 at 4:09 pm #562036Hi Sitemistic,
RE #11, when you say ‘developers’ are you referring to Joomla! ? Or has the template broken the Joomla! caption code? I have been struggling with this for weeks.
Regards,
CodgerAdam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
March 9, 2015 at 4:04 pm #562260In my first reply (#2), you have to look for :
defined('JPATH_BASE') or die;
or
defined('_JEXEC') or die;
in 2 files I mentioned there and add
JHtml::_('behavior.caption');
right below it to load the caption first, then use appropriate CSS code to align it. I passed this matter to development team so they will update those files in next version. This part is related to HTML overrides so you have to modify those files directly.
At the moment, the local folder can be used to override template layout or template blocks only.
2 users say Thank You to Adam M for this useful post
ssinha Friendssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
March 11, 2015 at 12:35 am #562474Hi Adam, your fix worked.. Yippee… One more favor, how do I center the caption? Right now it is left aligned.
Thanks so much for your help. Hopefully, like you said, it would be fixed in the next update.
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
ssinha Friendssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
March 11, 2015 at 3:18 pm #562660Cheers, Adam. Thank you so very much for your help. The caption looks a lot better when centered. Thanks to each one of you for coming to my help; the template is coming along nicely. Few more hiccups (I’ll post them separately) to be resolved following which it would be nearly ready to go online. Very much appreciate your help.
ssinha Friendssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
March 11, 2015 at 4:39 pm #562671Hi Adam, sorry to keep you bugging but I noticed one problem with captions. In the Menu/Category Blog mode, the caption shows which I don’t want it to be there. Not only that, the caption shows at the end of the intro text and not right below the scaled-down thumbnails. See the attached image.
I prefer no caption in Category Blog mode.
I tried to add these lines in custom.css as earlier suggested by Sitemistic:
/*Removes captions from thumbnails in Mega-Menu*/
.t3-megamenu .mega-col-module .mega-inner .img_caption p.img_caption {
display: none;
}/* Removes captions from thumbnails everywhere else */
.magazine-item .img_caption p.img_caption {
display: none;
}However, this didn’t help.
Thanks for your continued help.
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
ssinha Friendssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
March 13, 2015 at 2:54 pm #562979Adam, the site is still being developed on localhost so… 🙁
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
ssinha Friendssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
March 16, 2015 at 12:09 pm #563270Will do that, Adam. Thanks.
ssinha Friendssinha
- Join date:
- July 2014
- Posts:
- 183
- Downloads:
- 57
- Uploads:
- 11
- Thanks:
- 68
- Thanked:
- 12 times in 1 posts
March 21, 2015 at 10:19 am #564036Hi Sitemistic, earlier in the thread you provided this code (along with many other valuable codes):
/* Removes captions from thumbnails everywhere else */
.magazine-item .img_caption p.img_caption {
display: none;
}Can you confirm this code is correct? Because, as you can see from my last couple of comments in this thread, the captions are working fine on the article pages but they still show on category/blog pages. Just wanted to double-check with you. Thanks.
AuthorPostsThis topic contains 86 replies, has 6 voices, and was last updated by willer 9 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum