Problem/Motivation

I tried to understand how this amazing module works for a few hours but got stuck because I wasn't able to re-add a field that I had deleted. I didn't even know it was possible to add that much other blocks in my layout!
Thanks to tim.plunkett I learnt that there was supposed to be an "Add Block" button in each area of the layouts then I found it hidden by AdBlock Plus. I know it's a third party problem but I don't know why it choosed to block this link (I have default settings)

With AdBlock

Without AdBlock

Proposed resolution

It appears that AdBlock Plus does not like the "add-block" CSS class so we just have to change it.

Remaining tasks

  • Figure out why this link is blocked.
  • Change it so it's not blocked anymore.
  • Reviews.
  • Profit <3

User interface changes

Nope.

API changes

Nope.

Data model changes

Nope.

Comments

DuaelFr created an issue. See original summary.

duaelfr’s picture

Status: Active » Needs review
StatusFileSize
new1.36 KB

So... it seems that AdBlock does not like the "add-block" CSS class...

duaelfr’s picture

Issue summary: View changes
damienmckenna’s picture

Status: Needs review » Reviewed & tested by the community

This should be pretty painless :)

dyannenova’s picture

Status: Reviewed & tested by the community » Needs work

I haven't been able to replicate this one using AdBlock Plus, so it's hard for me to test, but I think we need to keep the class names between Add Block and Add Section consistent.

twiik’s picture

Happens for me with AdGuard in Chrome as well.

WidgetsBurritos’s picture

Issue tags: +Nashville2018

Working on this at DrupalCon

WidgetsBurritos’s picture

Assigned: Unassigned » WidgetsBurritos
WidgetsBurritos’s picture

Status: Needs work » Needs review
StatusFileSize
new3.76 KB

Per feedback in #5, this patch replaces all instances of add-block to new-block and add-section to new-section.

WidgetsBurritos’s picture

Assigned: WidgetsBurritos » Unassigned
wgentry’s picture

Working on this at DrupalCon2018

kporras07’s picture

Code looks ok for me, but I can't reproduce initial error so I can't really test the patch

wgentry’s picture

StatusFileSize
new258.6 KB

Unable to replicate. Screenshot

utcwebdev’s picture

StatusFileSize
new633.38 KB

I cannot replicate this issue with Mac High Sierra 10.13.4 (17E199) Safari Version 11.1 (13605.1.33.1.2)

screenshot of adblock plus not blocking add block button with class

tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community

I think this is fine.

  • lauriii committed 2ea71c6 on 8.6.x
    Issue #2953340 by DuaelFr, WidgetsBurritos, utcwebdev: "Add Block"...

  • lauriii committed 13bdff8 on 8.5.x
    Issue #2953340 by DuaelFr, WidgetsBurritos, utcwebdev: "Add Block"...
lauriii’s picture

Status: Reviewed & tested by the community » Fixed

I checked the easy list rules and it seems like there's some rules that are similar to the classnames we've used here, but I didn't find an exact match. Anyway, this seems fine since it fixes the problem. Committed 2ea71c6 and pushed to 8.6.x. Also 🍒picked 13bdff8 and pushed to 8.5.x. Thanks!

Status: Fixed » Closed (fixed)

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

tim.plunkett’s picture

Issue tags: +Blocks-Layouts

Retroactively tagging

tim.plunkett’s picture