Your Time:
Our Time:
← Back to discussions

Services Shortcode – Make Images a link

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 10 replies, 6 voices, and was last updated 10 years ago by Anonymous.

  • 2015-05-09 at 12:27 pm
    Support Expired
    #7843
    FVChurchAuburn
    Participant
    • Topics: 4
    • Replies: 6
    • Total posts: 10
    • Post count: 12

    Is there a way that you can update the Services shortcode so that the entire image is a link? Not just the sub-text.

    2015-05-09 at 5:39 pm
    #7844
    Wajid Khan
    Keymaster
    • Topics: 5
    • Replies: 1543
    • Total posts: 1548
    • Post count: 1876

    I’m sorry, we don’t have this feature at moment. We do intend to add it to our theme and we can notify you when it has been done.

    2015-05-10 at 10:20 am
    Support Expired
    #7849
    FVChurchAuburn
    Participant
    • Topics: 4
    • Replies: 6
    • Total posts: 10
    • Post count: 12

    Ok, thanks Mawk. Look forward to that improvement.

    2015-05-29 at 2:12 pm
    Support Expired
    #8051
    raumzeit3
    Participant
    • Topics: 6
    • Replies: 9
    • Total posts: 15
    • Post count: 9

    Also for me it would be great if you add this feature.
    Maybe you can notify me too?

    Thanks for your great work and all your supporting!

    2016-03-14 at 6:31 am
    Support Expired
    #13347
    detoxbuddy
    Participant
    • Topics: 5
    • Replies: 32
    • Total posts: 37
    • Post count: 34

    Hello,

    I’m wondering if there has been a solution to this yet? I have a number of service icons that I would like to link to other pages on my website….if it has not been updated, is there a work around that you can suggest to input shortcode into each services area?

    Thanks.

    2016-03-14 at 6:55 am
    Support Expired
    #13348
    detoxbuddy
    Participant
    • Topics: 5
    • Replies: 32
    • Total posts: 37
    • Post count: 34

    I should also say that I did some searching in other forums and thought I found a solution by adding in this code:

    [services align=”center” image=”http://www.aivahthemes.com/lifecare/files/24_7_ambulance_2.png” title=”Healthcare” link=”www.google.com” link_text=”Google”]Can Naturopathic Medicine help with your health problem?[/services]

    But no link is appearing…and obviously even if a link did appear it would be with the Text “Google”, whereas I want it to link to the image AND the title.

    Thanks!

    2016-03-14 at 10:22 am
    #13349
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    @detoxbuddy: While you are posting your questions, please create a new topic and post your questions there.
    Fixed the issue.
    Edited Files: shortcode-meta.php, shortcode.js and services.php

    2016-03-22 at 5:29 pm
    #13451
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Topic is set to be resolved. If you wish to update this topic please reply here instead of creating another topic.

    2016-08-08 at 6:36 am
    Support Expired
    #15793
    siblesquen
    Participant
    • Topics: 5
    • Replies: 2
    • Total posts: 7
    • Post count: 2

    It would be very useful if there was an option to set the links in the Services shortcode to target _blank

    2016-08-08 at 10:52 am
    #15800
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    @siblesquen: Add target="_blank" in services.php shortcode on line no: 23 as shown below.
    $out .= '<a href="'.$link.'" target="_blank"><img src="'.$image.'" width="'.$width.'" height="'.$height.'" alt=""></a>';

    2016-08-24 at 3:23 pm
    #16177
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Topic is set to be resolved. If you wish to update this topic please reply here instead of creating another topic.

You must be logged in to reply to this topic.