Style update for the blocks on the home page
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 15 Mar 2016 18:25:05 +0000 (14:25 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 15 Mar 2016 18:25:05 +0000 (14:25 -0400)
need to only hide the read more link for the home page blocks not all
images.

css/app.css
parts/glm-blocks.php
scss/_main.scss

index 777db06..f1d7221 100644 (file)
@@ -6843,7 +6843,7 @@ header {
       display: none; }
     #block-wrap .blocks .blocks p {
       display: none; }
-    #block-wrap .blocks .blocks a {
+    #block-wrap .blocks .blocks a.blocks-readmore {
       display: none; }
     #block-wrap .blocks .blocks .block-text {
       position: absolute;
index e7968db..76822e9 100644 (file)
                         </a>
                         <?php endif;?>
                         <?php if($block->url):?>
-                        <a class="title-posts" href="<?php echo $block->url;?>"<?php if($block->externalUrl){echo ' target="_blank"';}?>>
-                            <?php endif;?>
+                            <a class="title-posts" href="<?php echo $block->url;?>"<?php if($block->externalUrl){echo ' target="_blank"';}?>>
+                        <?php endif;?>
                             <div class="block-text">
                             <h3><?php echo $block->post_title;?></h3>
-                            <?php if($block->url):?>
-                        </a>
+                        <?php if($block->url):?>
+                            </a>
                         <?php endif;?>
                         <p><?php echo $block->post_content . $block->post_excerpt;?></p>
                         <a class="blocks-readmore" href="<?php echo $block->url;?>">Read More...</a>
index 47b0a2e..5cf4f6d 100644 (file)
@@ -61,7 +61,7 @@
             p {
                 display: none;
             }
-            a {
+            a.blocks-readmore {
                 display: none;
             }
             .block-text {
 .guide{
     padding: 10px;
     text-align: center;
-}
\ No newline at end of file
+}