-
AuthorPosts
-
June 12, 2013 at 10:45 pm #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
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
June 12, 2013 at 11:16 pm #495722I 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?
June 12, 2013 at 11:22 pm #495723I 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?
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
June 13, 2013 at 3:46 am #495733Hi,
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.
AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 3 voices, and was last updated by phong nam 11 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum