-
AuthorPosts
-
limeweb Friend
limeweb
- Join date:
- October 2006
- Posts:
- 86
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 3 times in 1 posts
May 1, 2009 at 8:41 pm #140795Does anybody know how (in html) to add a link to any of the Frontpage article images please?
limeweb Friendlimeweb
- Join date:
- October 2006
- Posts:
- 86
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 3 times in 1 posts
May 5, 2009 at 1:59 pm #303639Okay….if the Joomlart community doesn’t know how to add a link to a frontpage article image… same question to the JA Developers..
Please advise how to add a simple link to any site content from any image shown in any article on the demo frontpage layout?
Thank you.
Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
May 7, 2009 at 7:27 am #303889<em>@limeweb 126770 wrote:</em><blockquote>Does anybody know how (in html) to add a link to any of the Frontpage article images please?</blockquote>
=> For this case, please open templatesja_rubyhtmlcom_contentfrontpagedefault_item.php file, at about line 140, find following code:
<div class=”img-desc clearfix”>
<?php echo $image; ?>
</div>and change to:
<div class=”img-desc clearfix”>
<a href=”<?php echo $this->item->readmore_link; ?>” title=”<?php echo $this->item->title; ?>” class=”readon<?php echo $this->item->params->get(‘pageclass_sfx’); ?>”>
<?php echo $image; ?>
</a>
</div>1 user says Thank You to JA Developer for this useful post
limeweb Friendlimeweb
- Join date:
- October 2006
- Posts:
- 86
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 3 times in 1 posts
May 7, 2009 at 8:21 am #303896<em>@JA Developer 127674 wrote:</em><blockquote>=> For this case, please open templatesja_rubyhtmlcom_contentfrontpagedefault_item.php file, at about line 140, find following code:
<div class=”img-desc clearfix”>
<?php echo $image; ?>
</div>and change to:
<div class=”img-desc clearfix”>
<a href=”<?php echo $this->item->readmore_link; ?>” title=”<?php echo $this->item->title; ?>” class=”readon<?php echo $this->item->params->get(‘pageclass_sfx’); ?>”>
<?php echo $image; ?>
</a>
</div></blockquote>That works when the aim is to link to the ‘read more’ text, but could you advise the change that needs to be made to code to enable links to other site content please?
-
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by Anonymous 15 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum