Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Saguaros Moderator
    #1034331

    Hi Dan,

    I tried to open some articles like this one: http://swd.gvsd.ca/index.php/grade-3/275-miss-wiebe-s-class but the images show underneath the article, is that ok now?

    jreimer Friend
    #1034471

    Hello,

    Here is an example where all the articles in a blog still show the first image above the text:

    http://swd.gvsd.ca/index.php/grade-3

    Dan.

    Saguaros Moderator
    #1034630

    Hi Dan,

    It’s default feature of template which show the image above the content in category blog view. I’ve just removed it via file: root/templates/ja_erio/html/com_content/category/blog_item.php

    <?php if ($image) : ?>
    <div class="article-image">
    <?php echo $image ?> 
    </div>
    <?php endif; ?>
    
    <?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); ?>">
        <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); ?>"/>
        </div>
    <?php endif; ?>

    You can take a look.

    jreimer Friend
    #1034792
    This reply has been marked as private.
Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  jreimer 6 years, 11 months ago.

The topic ‘Image above text in article’ is closed to new replies.