-
AuthorPosts
-
hoknight Friend
hoknight
- Join date:
- July 2009
- Posts:
- 400
- Downloads:
- 128
- Uploads:
- 225
- Thanks:
- 110
- Thanked:
- 4 times in 4 posts
October 29, 2015 at 7:51 am #719850Hi,
Is it possible insert a hyperlink in a image? So,when a user clicking on image can be point to other page.
Module ID: 87
Thanks.
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
October 30, 2015 at 4:01 am #720296Hi @hoknight,
You can follow these steps :
1. Open file templatesja_charityacmfeatures-introtmplstyle-1.xml and look for this code :
<field name="block-image" type="media" default="" label="BLOCK_IMAGE_LABEL" description="BLOCK_IMAGE_DESC" />
add 1 line below it :
<field name="block-image" type="media" default="" label="BLOCK_IMAGE_LABEL" description="BLOCK_IMAGE_DESC" />
<field name="block-image-link" type="text" default="" label="BLOCK_IMAGE_LINK_LABEL" description="BLOCK_IMAGE_LINK_DESC" />2. Then open file templatesja_charityacmfeatures-introtmplstyle-1.php and look for this code :
<img src="<?php echo $helper->get('block-image'); ?>" alt="<?php echo $module->title ?>" class="feature-image" />
update as below :
<a href="<?php echo $helper->get('block-image-link'); ?>"><img src="<?php echo $helper->get('block-image'); ?>" alt="<?php echo $module->title ?>" class="feature-image" /></a>
1 user says Thank You to Adam M for this useful post
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
October 30, 2015 at 4:01 am #753308Hi @hoknight,
You can follow these steps :
1. Open file templatesja_charityacmfeatures-introtmplstyle-1.xml and look for this code :
<field name="block-image" type="media" default="" label="BLOCK_IMAGE_LABEL" description="BLOCK_IMAGE_DESC" />
add 1 line below it :
<field name="block-image" type="media" default="" label="BLOCK_IMAGE_LABEL" description="BLOCK_IMAGE_DESC" />
<field name="block-image-link" type="text" default="" label="BLOCK_IMAGE_LINK_LABEL" description="BLOCK_IMAGE_LINK_DESC" />2. Then open file templatesja_charityacmfeatures-introtmplstyle-1.php and look for this code :
<img src="<?php echo $helper->get('block-image'); ?>" alt="<?php echo $module->title ?>" class="feature-image" />
update as below :
<a href="<?php echo $helper->get('block-image-link'); ?>"><img src="<?php echo $helper->get('block-image'); ?>" alt="<?php echo $module->title ?>" class="feature-image" /></a>
1 user says Thank You to Adam M for this useful post
-
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by Adam M 9 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum