Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • glenng Friend
    #202798

    Despite I have added caption text, I can’t see it. What can be wrong, any idea?

    Thanks!


    1. ffff
    Adam M Moderator
    #555530

    Hi @glenng,

    Please open file root_folder/templates/ja_wall/html/com_content/category/blog_item.php and look for this code :

    <!-- Item Img -->
    <div class="item-image">
    <?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
    <?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
    <div class="img-intro-<?php echo htmlspecialchars($imgfloat); ?>">
    <?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
    <a href="<?php echo $link; ?>" title="<?php echo $atitle ?>" class="item-link">
    <?php endif; ?>
    <img
    <?php if ($images->image_intro_caption):
    echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
    endif; ?>
    src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
    <?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
    <span> </span>
    <span class="item-pin"> </span>
    </a>
    <?php endif; ?>
    </div>
    <?php endif; ?>
    </div>
    <!-- //Item Img -->

    then update as below :

    <!-- Item Img -->
    <div class="item-image">
    <?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
    <?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
    <div class="img-intro-<?php echo htmlspecialchars($imgfloat); ?>">
    <?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
    <a href="<?php echo $link; ?>" title="<?php echo $atitle ?>" class="item-link">
    <?php endif; ?>
    <img src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
    <?php if ($images->image_intro_caption): ?>
    <p class="img_caption"><?php echo htmlspecialchars($images->image_intro_caption); ?></p>
    <?php endif; ?>
    <?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
    <span class="item-pin"> </span>
    </a>
    <?php endif; ?>
    </div>
    <?php endif; ?>
    </div>
    <!-- //Item Img -->

    Save your file and recheck.

    glenng Friend
    #555631

    Thank you Adam,

    It has worked for the intro images but not full article images. Any suggestion for that?

    Thanks in advance!

    Metin

    <em>@Adam M 453532 wrote:</em><blockquote>Hi @glenng,

    Please open file root_folder/templates/ja_wall/html/com_content/category/blog_item.php and look for this code :

    <!-- Item Img -->
    <div class="item-image">
    <?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
    <?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
    <div class="img-intro-<?php echo htmlspecialchars($imgfloat); ?>">
    <?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
    <a href="<?php echo $link; ?>" title="<?php echo $atitle ?>" class="item-link">
    <?php endif; ?>
    <img
    <?php if ($images->image_intro_caption):
    echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
    endif; ?>
    src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
    <?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
    <span> </span>
    <span class="item-pin"> </span>
    </a>
    <?php endif; ?>
    </div>
    <?php endif; ?>
    </div>
    <!-- //Item Img -->

    then update as below :

    <!-- Item Img -->
    <div class="item-image">
    <?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
    <?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
    <div class="img-intro-<?php echo htmlspecialchars($imgfloat); ?>">
    <?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
    <a href="<?php echo $link; ?>" title="<?php echo $atitle ?>" class="item-link">
    <?php endif; ?>
    <img src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
    <?php if ($images->image_intro_caption): ?>
    <p class="img_caption"><?php echo htmlspecialchars($images->image_intro_caption); ?></p>
    <?php endif; ?>
    <?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
    <span class="item-pin"> </span>
    </a>
    <?php endif; ?>
    </div>
    <?php endif; ?>
    </div>
    <!-- //Item Img -->

    Save your file and recheck.</blockquote>

    Adam M Moderator
    #555758

    Hi Metin,

    Just open file root_folder/templates/ja_wall/html/com_content/article/default.php and look for this code :

    <div class="img-fulltext-<?php echo htmlspecialchars($imgfloat); ?>">
    <img
    <?php if ($images->image_fulltext_caption):
    echo 'class="caption"'.' title="' .htmlspecialchars($images->image_fulltext_caption) .'"';
    endif; ?>
    src="<?php echo htmlspecialchars($images->image_fulltext); ?>" alt="<?php echo htmlspecialchars($images->image_fulltext_alt); ?>"/>
    </div>

    then update as below :

    <div class="img-fulltext-<?php echo htmlspecialchars($imgfloat); ?>">
    <img src="<?php echo htmlspecialchars($images->image_fulltext); ?>" alt="<?php echo htmlspecialchars($images->image_fulltext_alt); ?>"/>
    <?php if ($images->image_fulltext_caption): ?>
    <p class="img_caption"><?php echo htmlspecialchars($images->image_fulltext_caption); ?></p>
    <?php endif; ?>
    </div>

    glenng Friend
    #555804

    Thank you very much Adam! It has worked!

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 2 voices, and was last updated by  glenng 10 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum