WordPress.org

Forums

TAB SLIDE
[resolved] Picture Template with Hyperlink (3 posts)

  1. ttridley
    Member
    Posted 4 years ago #

    Hi and thanks for a really great bit of code.
    Can you tell me now to modify the picture template so that the picture has a hyperlink to a page ? (eg when the picture is clicked, you are redirected to a page) ?
    Thanks again.

    http://wordpress.org/extend/plugins/tab-slide/

  2. zoranc
    Member
    Plugin Author

    Posted 4 years ago #

    in the picture template
    edit line 13

    var img_obj = "<img id='img_obj' src= '" + opt.picture_url + "'/>";
    to
    var img_obj = "<a href='http://www.mylink.com'><img id='img_obj' src= '" + opt.picture_url + "'/></a>";
  3. ttridley
    Member
    Posted 4 years ago #

    Thank you so much Zoranc. That works a treat!
    Tridley

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TAB SLIDE
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags