I’ve setup a custom ACF Block to create styled boxes that combine images and text into clickable links – all works OK in frontend and can be edited as expected in the backend.
However, because the link is displayed as a 100% height/width block, when clicking on the block in the backend the preview link is followed and the page refreshes, which makes getting into the block a bit fiddly (having to select the element in the list view instead).
Is there anyway I can disable the link in the backend display at all?
late reply but you can use is_admin()
to see if you are in the backend. then change the <a>
to a <div>
so it can’t be clicked.