Fix the url so it only show when url is present
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 2 Oct 2015 18:55:00 +0000 (14:55 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 2 Oct 2015 18:55:00 +0000 (14:55 -0400)
front-page.php

index 98e1509..0ee4ad1 100644 (file)
@@ -40,7 +40,9 @@
                         </a>
                          <?php endif;?>
                     <p><?php echo $block->post_excerpt;?></p>
+                    <?php if($block->url):?>
                     <a class="blocks-readmore" href="<?php echo $block->url;?>">Read More...</a>
+                    <?php endif;?>
                 </div>
                 <?php endforeach;?>
             </div>