Skip to content

Commit 365fbf0

Browse files
authored
Merge pull request #341 from BeAPI/feature/disable-links-acf-preview
disable links in acf preview
2 parents aa441c6 + 725bdac commit 365fbf0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/scss/06-blocks/_gutenberg.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@
1717
font-family: var(--global--font-secondary);
1818
font-size: var($font-size-md);
1919
}
20+
21+
// ----
22+
// Disable links in ACF blocks
23+
// The template block must have a ".block" class. Example : <div class="block block--my-custom-block">
24+
// ----
25+
.acf-block-preview {
26+
> .block {
27+
a,
28+
button {
29+
pointer-events: none;
30+
}
31+
}
32+
}
2033
}
2134

2235
// ----

0 commit comments

Comments
 (0)