fixing nested anchor tags wrapped in each other
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 3 Dec 2018 14:11:17 +0000 (09:11 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 3 Dec 2018 14:11:17 +0000 (09:11 -0500)
glm-blocks.php

index f6e8735..7f7c164 100644 (file)
@@ -113,7 +113,7 @@ function action_item_blocks( $atts ){
         foreach ($blocks as $block):
             $post_image_id = get_post_thumbnail_id($block->ID);
             $thumbnail = wp_get_attachment_image_src( $post_image_id, 'landing_page');
-            $out .= '<a class="small-text-center medium-text-left glm-block">';
+            $out .= '<div class="small-text-center medium-text-left glm-block">';
             if($block->url):
                 $out .= '<a href="'.$block->url.'"'.(($block->externalUrl)? ' target="_blank"':'').'>';
             endif;