adjusting the front page blocks image size in the functions file, increasing from...
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 15 Aug 2016 13:51:34 +0000 (09:51 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 15 Aug 2016 13:51:34 +0000 (09:51 -0400)
functions.php
parts/glm-blocks.php

index fffb3b0..538a9ff 100644 (file)
@@ -239,7 +239,7 @@ function mytheme_init() {
 add_action('init', 'mytheme_init', 10);
 
 add_image_size('glm_block', 200,100,true);
-add_image_size('glm_block_frontpage', 300,408, true);
+add_image_size('glm_block_frontpage', 320,408, true);
 
 function wpse_setup_theme() {
     add_image_size('glm-block-image', 290, 190,true);
index 5d3d7e8..869a32e 100644 (file)
@@ -1,5 +1,5 @@
 <?php if(function_exists('fetch_all_glm_blocks')):?>
-<?php $blocks = fetch_all_glm_blocks(1205);?>
+<?php $blocks = fetch_all_glm_blocks(188);?>
 <div class="blocks row collapse glm-blocks-container">
     <?php foreach ($blocks as $block):?>
     <div class="small-12 medium-4 large-3 columns text-left blocks glm-block">
@@ -21,7 +21,7 @@
                     </a>
                     <?php endif;?>
                     <p><?php echo $block->post_content . $block->post_excerpt;?></p>
-                    <a class="blocks-readmore" href="<?php echo $block->url;?>"><button><?php echo substr(strip_tags($block->post_content),0,13); ?></button></a>
+                    <a class="blocks-readmore" href="<?php echo $block->url;?>"><button><?php echo substr(strip_tags($block->post_content),0,12); ?></button></a>
                 </div>
     </div>
     <?php endforeach;?>