HTML example:

<a href="http://www.example.com/bigger_image.jpg"><img width="100" height="128" src="http://www.example.com/image.jpg"/></a>

In this case Iconizer adds an icon to the left of the image and makes the link not very nice and out of place. I believe that the module should exclude image links.

CommentFileSizeAuthor
Example4.4 KBdomasj

Comments

david@thrale.com’s picture

I agree. This module doesn't play friendly with the image module. However, there is a easy workaround.

In file_icons.css, find the part

a[href$='.jpg'], a[href$='.gif'], a[href$='.png'], a[href$='.bmp'], a[href$='.jpeg'], a[href$='.svg'], a[href$='.eps'] { 
	padding: 5px 20px 5px 0;
	background: transparent url(files_icons/icon_pic.gif) no-repeat center right;
}

... and delete the line ...

	background: transparent url(files_icons/icon_pic.gif) no-repeat center right;

The only drawback is that you will lose any customisation when upgrading this module.

thepanz’s picture

Category: bug » feature
Status: Active » Fixed

Fixed in latest 6.x-1.x-dev release.
Please test

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

dharmatech’s picture

I know it's a little late but just thought I would chime in that I just installed and tested 6.x-1.x-dev and it still shows icons for image links.

Thanks
Tony

thepanz’s picture

Tony, please refer to READM E file: file icons are now overridable :)

Brainwrap’s picture

Disable link icon if linking *to* a PDF file *from* a graphic?

Hi, I think there may be some confusion about what I'm asking--in my case, I have a *graphic* which links to a PDF file. I want to be able to disable the PDF icon from loading, but only on this graphic link--*not* from the rest of the page.

Here's the link in question:

http://test.reginahs.com/

In the lower left on the home page, you'll see a long blue button "Cafeteria Menu" which links to a PDF--and the PDF icon appears to the right of it. I'd like to be able to disable that icon while preserving the link, but while keeping the icons on any other PDF links on the home page.

Is this feasible using the custom CSS solution you mentioned?

thepanz’s picture

Category: feature » task

I understand, you have to add a *custom* CSS entry in your theme to disable the .PDF link icon..

in particular, for your theme:

#block-block-7 a {
    background: none;
    padding: 0;
}

It depends on your blocks order because your HTML don't have any further IDs or CLASS associated to the structure elements.

Regards

This is an *ad-hoc* solution. I'm setting the issue to "closed". For further ah-hoc requests please contact your theme team :)

Brainwrap’s picture

Thanks much; I understand--I'd basically have to add that custom CSS entry for each instance of a graphic linking to a PDF, which is fine (actually, we ended up changing it to a simple text link on the live site anyway, but I'll remember that going forward).