Skip to content

Commit 8e67870

Browse files
committed
disable links in acf preview
1 parent 71b8a8e commit 8e67870

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/scss/06-blocks/_gutenberg.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,22 @@
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+
pointer-events: none;
29+
}
30+
31+
[data-seo-container] {
32+
cursor: default;
33+
}
34+
}
35+
}
2036
}
2137

2238
// ----

0 commit comments

Comments
 (0)