View Full Version : Customizing external links
travischance
Oct-24-2009, 06:23 AM
Is there a way to force the color when adding external links? For example, I have the "L" forced to bold & color #CD0000 on my equipment page (Canon EF 16-35mm f/2.8L II USM). However, if I add the following code, I lose this style:
<a href=http://www.the-digital-picture.com/Reviews/Canon-EF-16-35mm-f-2.8-L-II-USM-Lens-Review.aspx# target=blank">Canon EF 16-35mm f/2.8<b><font color="#CD0000">L</b></font> II USM<br>
Is there a way around this or would I need to add something like this:
<a href=http://www.the-digital-picture.com/Reviews/Canon-EF-16-35mm-f-2.8-L-II-USM-Lens-Review.aspx# target=blank">info or here</a><br>
Thank You in advance!!!
jfriend
Oct-24-2009, 08:22 AM
Where are you putting this custom HTML? If it was anywhere other than you header or footer, did you put <html> before it and </html> after it to tell Smugmug you were using custom HTML? There is no reason I know of this should work. To help you any further, we need a link to an example.
polysubstrate
Oct-25-2009, 02:44 PM
Is there a way to force the color when adding external links? For example, I have the "L" forced to bold & color #CD0000 on my equipment page (Canon EF 16-35mm f/2.8L II USM). However, if I add the following code, I lose this style:
<a href=http://www.the-digital-picture.com/Reviews/Canon-EF-16-35mm-f-2.8-L-II-USM-Lens-Review.aspx# target=blank">Canon EF 16-35mm f/2.8<b><font color="#CD0000">L</b></font> II USM<br>
Is there a way around this or would I need to add something like this:
<a href=http://www.the-digital-picture.com/Reviews/Canon-EF-16-35mm-f-2.8-L-II-USM-Lens-Review.aspx# target=blank">info or here</a><br>
Thank You in advance!!!
Hi Travis,
When I add the following HTML it works fine and I can still see the red L in my FF browser:
<a href="http://www.the-digital-picture.com/Reviews/Canon-EF-16-35mm-f-2.8-L-II-USM-Lens-Review.aspx#">Canon EF 16-35mm f/2.8<font color="#CD0000"><b>L</b></font> II USM</a><br>
Note that you were missing an open quote for the link, the closing </a> tag before the break, and the two bold commands should be inside the two font commands (like this: <font color...><b>L</b></font> ); none of those changes affected the link color as far as I could tell. IE is a little bit more persnickety and may have had issue with them, you might try again with the corrected format.
You might also look at your browser settings for link colors, sometimes browser configured colors will override those configured on a page. If your browser is caching data you may try refreshing the page to reload it, i.e., maybe the page isn't reflecting the change yet. Visited links may also behave differently, often with a different color, clearing browser history may cause it to display as you have defined (until you click on it again). Those are just some random thoughts on other variables which may cause the link text to display differently than expected.
A work around might be to hyperlink a smaller portion of the text in the listing and avoid your color formatted text, such as only linking the brand name text rather than the entire line. Like this:
<a href="http://www.the-digital-picture.com/Reviews/Canon-EF-16-35mm-f-2.8-L-II-USM-Lens-Review.aspx#">Canon</a> EF 16-35mm f/2.8<font color="#CD0000"><b>L</b></font> II USM<br>
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.