WordPress.org

Support

Support » Themes and Templates » [Resolved] How to make images clickable

[Resolved] How to make images clickable

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi agruenke

    Yes! You can make the service and product image clickable.

    You need to edit same line of code and add hard code URl.

    Find index-service.php and index-product.php files.In theme directory folder.

    In index-product.php find given code.

    <img src=”<?php echo $products[‘product1_image’]; ?>” alt=”Spa Featture” class=”product_flex_img” />

    Add your hard code url with this image tab. Like this type.

    <a href="YOUR URL">
     <img src="<?php echo $products['product1_image']; ?>"  alt="Spa Featture" class="product_flex_img" />
    </a>

    In index-service.php find a given code.

    <img src=”<?php echo $service_data[‘service1_image’]; ?>” alt=”Spa Featture” class=”home_service_img” />

    Add your hard code url with this image tab. Like this type.

    <a href="YOUR URL">
        <img src="<?php echo $service_data['service1_image']; ?>"  alt="Spa Featture" class="home_service_img" />
     </a>

    Note-: Add your url all reaming image tag according to you in both files.

    It will resolved your problem.
    Thanks

    do i over write the existing code or just put the suggested code you gave me in addition to the code already there? does it matter if it is above or below that existing code?

    Thanks

    Hi agruenke

    The service and product image click-able to edit two files.

    This file are available in theme directory folder.
    1. index-service.php
    2. index-product.php

    Follow up the above given instruction.

    Thanks

    Hi Hari, I understood about the file to edit but i was asking do i overwrite the exisiting code or do i add the additional code above that you recommend? if so do i add it above or below the existing code?

    Please clarify

    Ok I got the images clickable but now i am having a problem trying to get the text description under the products to be clickable

    ….. what to i edit to do that… i was able to get the services text description clickable but having a problem getting the text under the product images to become clickable to same URL as image.

    http://facialskelowna.com/wordpress

    Please help

    Hi agruenke

    You can add your custom URL in index-service.php and index-product.php.
    Fore example :

    <a href="http://your domain name .com/xyz/">
       Here are your block of code to display text and image .
    </a>

    It resolved your clickable text and image issue .

    Thanks

    Hello,

    Is it possible to make the 3 “Home-Feature-Thumbstrip” images clickable?

    Kind regards

    Akhlesh Nagar

    @akhlesh-nagar

    Webriti Theme Support Staff

    Hi @nr27

    Yes! You can make the 3 Home-Feature-Thumbstrip image clickable.

    You need to edit some line of code and add hard code URl.
    Find index-slider.php files.In theme directory folder.

    find the below line of code
    <div class=”thumb-img-container”>
    <?php if($current_options[‘first_thumb_image’]!=”) ?>
    <img src=”<?php echo $current_options[‘first_thumb_image’]; ?>” alt=”Spa Featture” class=”slider-thumb” />
    </div>

    and Add your hard code url with this image tab. Like this type.
    <a href="your url"><img src="<?php echo $current_options['first_thumb_image']; ?>" alt="Spa Featture" class="slider-thumb" /></a>

    THis is do for all the three image .

    Let me know for further assistance .
    Thanks
    Akhilesh

    Yes; great!
    That workes fine, thank you akhlesh.
    Thinking of upgrading to pro;
    Is there a site where I can compare free and pro version?

    kind regards

    Akhlesh Nagar

    @akhlesh-nagar

    Webriti Theme Support Staff

    Hi nr27

    Your welcome

    http://webriti.com/demo/wp/spasalon/

    This is the demo link of our Premium theme .
    For our other premium themes visit webriti.com

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Resolved] How to make images clickable’ is closed to new replies.