Options

How to make fine hyperlinks

How do I make a hyperlink to a gallery without showing the hole URL. Example: I have a gallery with pics of the Blue Tit taken in the Danish nature reserve Vaserne and another gallery with my pics from Vaserne. In the "Caption" on every Blue Tit pic I want to place a link to the Vaserne gallery. I can do that by copying and showing the hole URL, but I would prefer a highlighted "Vaserne" (hyperlink) with a hidden URL. Can that be done?

Comments

  • Options
    denisegoldbergdenisegoldberg Administrators Posts: 14,237 moderator

    You can place HTML in the caption using an <a href= statement.

    For example:
    <a href="https://jb-photos.smugmug.com/">Jørgen Bjerring's site</a>

    https://www.w3schools.com/tags/att_a_href.asp

  • Options
    [Deleted User][Deleted User] Posts: 0 Many Grins

    @denisegoldberg said:
    You can place HTML in the caption using an Jørgen Bjerring's site`
    https://www.w3schools.com/tags/att_a_hre

    OMG it works. Thank you so much for your kind help.

  • Options
    FergusonFerguson Registered Users Posts: 1,339 Major grins
    edited March 8, 2017

    Note it is also possible to support both nickname and custom domain name formats with the same link if you do it like this:

         <a href="/Events/FGCUMBB/KSU030217/"><span style="color:LightBlue">03/02/17 FGCU over KSU ASun Semi Final</span></a>
    

    It's called a relative link, where the server portion is omitted. The browser will fill in the server portion for you based on how you got to the current page, so in my case this then will both support:

         http://www.captivephotons.com/Events/FGCUMBB/KSU030217/
         http://linwoodferguson.smugmug.com/Events/FGCUMBB/KSU030217/
         https://linwoodferguson.smugmug.com/Events/FGCUMBB/KSU030217/
    

    If you are explicit for the whole URL, and you use custom domains, it will force a switch to whichever you use.

    PS. The span and color in mine just changes the link color, it and the corresponding termination of the span can be omitted, but thought it might be of interest.

  • Options
    [Deleted User][Deleted User] Posts: 0 Many Grins

    @Ferguson said: ...

    Many thanks to you too. Your answer is very helpful :) .

Sign In or Register to comment.