bkrztuk wrote:Please open file template/html/com_content/category/blog_item.php and find this part of code:
- Code: Select all
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"'.' title="' .$images->image_intro_caption .'"';
endif; ?>
<?php if (!empty($images->image_intro)):?>
style="float:<?php echo $params->get('float_intro') ?>"
<?php else: ?>
style="float:<?php echo $images->float_intro ?>"
<?php endif; ?>
src="<?php echo $images->image_intro; ?>" alt="<?php echo $images->image_intro_alt; ?>"/>
and replace it with:
- Code: Select all
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>">
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"'.' title="' .$images->image_intro_caption .'"';
endif; ?>
<?php if (!empty($images->image_intro)):?>
style="float:<?php echo $params->get('float_intro') ?>"
<?php else: ?>
style="float:<?php echo $images->float_intro ?>"
<?php endif; ?>
src="<?php echo $images->image_intro; ?>" alt="<?php echo $images->image_intro_alt; ?>"/></a>
I cant find that code on my end
The only reference i have on image is this;
<?php echo JLayoutHelper::render('joomla.content.intro_image', $this->item); ?>
The lines around it are;
<?php if ($useDefList) : ?>
<?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $this->item, 'params' => $params, 'position' => 'above')); ?>
<?php endif; ?>
<?php echo JLayoutHelper::render('joomla.content.intro_image', $this->item); ?><?php if (!$params->get('show_intro')) : ?>
<?php echo $this->item->event->afterDisplayTitle; ?>
<?php endif; ?>
<?php echo $this->item->event->beforeDisplayContent; ?> <?php echo $this->item->introtext; ?>