Displaying links in gallery description.

SkipperrikSkipperrik Registered Users Posts: 23 Big grins
edited November 6, 2013 in SmugMug Support
I recently received help in displaying links in image descriptions (http://dgrin.com/showthread.php?t=242230) but would also like to display links within the gallery comments. The specific gallery is here: http://www.richardsharpephotography.com/Events/Hirshberg-Foundation/Alligator-Walk-2013. The link is to the Hirshberg Foundation. I've used the syntax <a href="site url here">text here</a> to make the name become a link but need to change the color and underline it. For the gallery comments I used this syntax:

.sm-gallery-image-container .sm-tile-info a {
color:#ccc;
text-decoration: underline;
}

.sm-gallery-image-container .sm-tile-info a:hover {
color:#fff;
}

.sm-gallery-image-container .sm-tile-keywords a {
color:#aaa;
text-decoration: none;
}

Can someone help me with the syntax for underlining and changing the color of the link within the gallery description?

Thanks.

Comments

  • The MechanicThe Mechanic Registered Users Posts: 197 Major grins
    edited November 6, 2013
    Hi Skipperrik,

    You can give this a try, just replace your current html for the link:

    Hirshberg Foundation

    You can change the color as needed using basic names or a color number.

    Thanks -Scott
  • SkipperrikSkipperrik Registered Users Posts: 23 Big grins
    edited November 6, 2013
    Thanks, Scott. Is there a way to underline the link too? Also, I would be great if clicking on a link opened it in another tab so clients wouldn't always leave my site. Is that possible?
  • guyguy Registered Users Posts: 191 Major grins
    edited November 6, 2013
    Skipperrik wrote: »
    Thanks, Scott. Is there a way to underline the link too? Also, I would be great if clicking on a link opened it in another tab so clients wouldn't always leave my site. Is that possible?


    <a href="http://www.pancreatic.org/&quot; style="color:pink" target="_blank">Hirshberg Foundation</a> would open it in a new window.
  • denisegoldbergdenisegoldberg Administrators Posts: 14,393 moderator
    edited November 6, 2013
    Skipperrik wrote: »
    ...I would be great if clicking on a link opened it in another tab so clients wouldn't always leave my site. Is that possible?
    Make sure you know how your clients will react to your site opening another tab - if a site starts opening browser tabs or windows that I didn't request I usually close the site. I know, I know, that might be a bit extreme but I want control over what happens. And... have you ever watched users when web sites proliferate windows? I've seen many people who have no idea how to clean up the mess.

    --- Denise
  • SkipperrikSkipperrik Registered Users Posts: 23 Big grins
    edited November 6, 2013
    guy wrote: »
    <a href="http://www.pancreatic.org/&quot; style="color:pink" target="_blank">Hirshberg Foundation</a> would open it in a new window.

    Thanks for the info, Guy. That works great. Is there a way to underline the link?
  • SkipperrikSkipperrik Registered Users Posts: 23 Big grins
    edited November 6, 2013
    Make sure you know how your clients will react to your site opening another tab - if a site starts opening browser tabs or windows that I didn't request I usually close the site. I know, I know, that might be a bit extreme but I want control over what happens. And... have you ever watched users when web sites proliferate windows? I've seen many people who have no idea how to clean up the mess.

    --- Denise

    Thanks for your concern, Denise. I don't like a barrage of popup windows opening either but if I click on a link and it opens a new tab, that doesn't bother me a bit. In fact, sometimes I find it helpful in that I don't have to search through my history to return to the original page. I think I would rather run the risk of people not liking it than having them exit my site altogether.
Sign In or Register to comment.