Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • extuid Friend
    #188200

    Place the main image in the article as K2 in the attachment, because at the top of the article does not go full out in half?

    The URL is http://www.keacity.com


    1. problem_04
    TomC Moderator
    #495722

    I believe this is something you will need to adjust within the text/html editor for the individual articles within the K2 component. In other words, adjust the placement/alignment of the image within the article – similar as you would in, say, MS WORD

    Make Sense?

    extuid Friend
    #495723

    I want the main image that appears in the category remain in the article, I have to put 2 images to achieve that result as the main out on top in an incomplete and very large?


    1. problem_05
    phong nam Friend
    #495733

    Hi,

    The solution is removing the top image in our override K2 article layout: Open templatesja_argohtmlcom_k2ja_argoitem.php, then remove or comment below lines:

    <?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?>
    <!-- Item Image -->
    <div class="itemImageBlock">
    <span class="itemImage">
    <a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
    <img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
    </a>
    </span>

    <?php if($this->item->params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?>
    <!-- Image caption -->
    <span class="itemImageCaption"><?php echo $this->item->image_caption; ?></span>
    <?php endif; ?>

    <?php if($this->item->params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?>
    <!-- Image credits -->
    <span class="itemImageCredits"><?php echo $this->item->image_credits; ?></span>
    <?php endif; ?>

    <div class="clr"></div>
    </div>
    <?php endif; ?>

    Then insert the main image manually.

    * Remember to backup your website (files) before applying changes.


    1. 3
Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 3 voices, and was last updated by  phong nam 10 years, 11 months ago.

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