Excluding icons on image links with External Links Module

Susan MacPhee's picture

Susan MacPhee
December 1, 2011
4:14pm

Hi, The icon that automatically appears on external links from the External Link module is great. However, they look funny when you have a logo or a page of logos that goes to external pages. Example: https://skitch.com/e-susanmacphee/gpyqe/collaborators-the-future-of-clou...

I'm not sure if "Regular expression inclusion and exclusion of links considered external" means anything on External Link documentation:

http://drupal.org/project/extlink

Thank you!

Susan

PS, thank you for installing External Links module. It's been a request of mine since way back.

Comments

Moderator
davidmurphy January 19, 2012
1:35pm

 

Susan,   As a way to hide the links on images, you can wrap the image in a div. That way you'll be able to target just the link icons that are on images. As an example, you have the page that has all of the collaborator logos listed. You could wrap the content in the Editor using the HTML tab in a div with an id of collaborators, then target the div with CSS. In the custom CSS, you could use...   #collaborators .ext { display: none; }   ...to hide the link icons.   You could also use a class name for the div's if you would want to apply styling to all images across your site. 

Best regards,

Dave | Drupal Gardens Client Advisor

Moderator
davidmurphy January 20, 2012
10:11am

Susan,

I have escalated this feature request to our engineering team. It is now being tracked as DG-2599.

Best regards,

Dave | Drupal Gardens Client Advisor

Susan MacPhee January 20, 2012
12:06pm
That's wonderful David. I still appreciate your work-around idea adding target the div. I never thought of that. I can't wait to see the next round of features whether this is in it or not. Always exciting. All the best! Susan