193 posts
  • Author had a Free File of the Month
  • Sold between 50 000 and 100 000 dollars
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 1 and 9 items
  • Europe
ikaruna says

Hello,

I’m experiencing a problem, it seems a FF add-on popup blocker adds a strange class to my portfolio images, this causes the images not to load anymore, I tried to remove the class with JS, still it ads it again. Now, my question is how do I fix this, does it have to do with the names of my classes?

You can see it Here

thank you! jayc

193 posts
  • Author had a Free File of the Month
  • Sold between 50 000 and 100 000 dollars
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 1 and 9 items
  • Europe
ikaruna says

You will not believe this: I had WP generate thumbs like this:

parent::addImageSize(300, 250, $settings[‘post_type’].’-preview’, true);

guess what it was naming the image something like:

uploads/2012/12/7_large-300×250.jpg

which has the “300×250” text, which is a standard banner size and was blocked by banner blockers.

So, never ever make thumb sizes of 300×250.

jacy

136 posts
  • Sold between 50 000 and 100 000 dollars
  • Referred between 50 and 99 users
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • United Kingdom
ThemeShaper says

Which popup blocker?

It might be the particular image size is triggering it (tried a diff size?) – maybe only a single pixel might get round it.

https://easylist-downloads.adblockplus.org/easylist.txt

will give you an idea what to not name the files (not sure if class names / id’s trigger it, but it looks like resizing scripts with certain image sizes will).

136 posts
  • Sold between 50 000 and 100 000 dollars
  • Referred between 50 and 99 users
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • United Kingdom
ThemeShaper says

Ah heh, slightly too late ;)

Glad you fixed it :D

193 posts
  • Author had a Free File of the Month
  • Sold between 50 000 and 100 000 dollars
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 1 and 9 items
  • Europe
ikaruna says

Ah heh, slightly too late ;) Glad you fixed it :D

Thanx ThemeShaper :),

For once this one: Adblock Plus

It was driving me crazy I spent about 6 hours on this issue, initially I did not know that was a popup blocker (my partner informed me that portfolio wont show up).

cheers! jayc

2441 posts
  • Has been a member for 5-6 years
  • Exclusive Author
  • Europe
  • Bought between 10 and 49 items
  • Referred between 100 and 199 users
  • Sold between 100 and 1 000 dollars
  • Envato Studio (Microlancer) Beta Tester
digitalimpact says

I don’t think it’s a theme’s responsibility to handle issues created by some pop-up blocker from a 3rd party. It’s like coding a workaround for some security setting in an ancient IE version; you just can’t cover all scenarios. And you shouldn’t, because it’s a website template, not an app or something else.

Don’t get me wrong jayc, but you shouldn’t need to do that; let alone spend 6 hours on it. (it’s for a commercial theme, I suppose?)

Anyway, it sure is plain stupid for that plugin to block images based on a name pattern. They should find another way of blocking them, as a site owner I want to name my images however the hell I wish. Stupid plugin. :)

136 posts
  • Sold between 50 000 and 100 000 dollars
  • Referred between 50 and 99 users
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • United Kingdom
ThemeShaper says

I think its just one of those things we have to deal with. Well, we don’t have to, and its not the responsibility of the theme author.. but if a buyer has an adblocker running, view the demo and the demo uses a size that makes it blockable, its a potential lost sale ;) (it is also a lot of possible support questions down the line).

I think most of the filters they check for would be no prob (putting ‘ad’ and such in the names isn’t too likely ;)) – but the image sizing is definitely one that could catch you out (I think I have run into it before).

by
by
by
by
by
by