Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • hoknight Friend
    #719850

    Hi,

    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 Moderator
    #720296

    Hi @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>

    Adam M Moderator
    #753308

    Hi @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>

Viewing 3 posts - 1 through 3 (of 3 total)

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