Created
October 1, 2025 11:58
-
-
Save nicmare/9af6377b3f995904f81c5981dccc8d91 to your computer and use it in GitHub Desktop.
Blocksy: Remove Links from custom post cards
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function change_layer_from_card($layer,$prefix,$image_args){ | |
| if($prefix != "unterstuetzer_archive") return $layer; | |
| $layer["featured_image"] = sprintf('<div class="ct-media-container">%s</div>',strip_tags($layer["featured_image"],"<img>")); | |
| $layer["title"] = strip_tags($layer["title"],"<h2>"); | |
| return $layer; | |
| } | |
| add_filter('blocksy:archive:render-card-layers',"change_layer_from_card",10,3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment