test
Viewing 15 posts - 16 through 30 (of 86 total)
  • Author
    Posts
  • ssinha Friend
    #561101

    Yes, those lines are there.

    sitemistic4746 Developer
    #561102

    I’m stumped, then. Sorry.

    sitemistic4746 Developer
    #561103

    I 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’);

    ssinha Friend
    #561104

    Yes, 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 Friend
    #562036

    Hi 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,
    Codger

    Adam M Moderator
    #562260

    Hi @ssinha & @codger,

    In 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.

    ssinha Friend
    #562474

    Hi 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 Moderator
    #562506

    Hi @ssinha,

    Please add this code to custom.css file and recheck :

    .img_caption p.img_caption {
    text-align: center;
    }

    ssinha Friend
    #562660

    Cheers, 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 Friend
    #562671

    Hi 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.


    1. caption
    Adam M Moderator
    #562901

    Hi @ssinha,

    May I know your site url so I can check it for you ?

    ssinha Friend
    #562979

    Adam, the site is still being developed on localhost so… 🙁

    Adam M Moderator
    #563178

    Hi @ssinha,

    In this case, just leave it there and let me know when your site is online, I need to take a look at HTML code in order to provide you appropriate CSS code to hide it.

    ssinha Friend
    #563270

    Will do that, Adam. Thanks.

    ssinha Friend
    #564036

    Hi 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.

Viewing 15 posts - 16 through 30 (of 86 total)

This 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