-
AuthorPosts
-
September 20, 2014 at 1:32 pm #201476
My question is how to add link to intro images?
I allerdy tried to add the following code in: blog_item.php (path in mitius template)
<a href=”/<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>”><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); ?>”/>
</a>but with no luck 🙁
I use latest Joomla 3.3Eragon H FriendEragon H
- Join date:
- July 2014
- Posts:
- 468
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 5
- Thanked:
- 156 times in 149 posts
September 22, 2014 at 5:59 am #550344You can change in the above file at line 67 : http://prntscr.com/4p5rj8
From
<?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="pull-<?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); ?>" itemprop="thumbnailUrl" /> </div>
<?php endif; ?>To
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>">
<?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="pull-<?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); ?>" itemprop="thumbnailUrl" /> </div>
<?php endif; ?>
</a>September 25, 2014 at 12:55 pm #550745Still not working,
Like nothing happens when i do the change.This is the folder path just to make it sure:
templates/ja_mitius/html/com_content/category/blog_item.php(after change, deleted cache, localy on site… nothing…)
Eragon H FriendEragon H
- Join date:
- July 2014
- Posts:
- 468
- Downloads:
- 1
- Uploads:
- 39
- Thanks:
- 5
- Thanked:
- 156 times in 149 posts
September 25, 2014 at 1:31 pm #550746The path is correct. And it is working at my end: http://prntscr.com/4q5qag
To be sure, can you:
1. Specify the place where you want to add this features: direct link + screenshot with description
2. Share your site URL and temporary admin account via PM. Remember to include the link to this thread
-
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by Eragon H 10 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum