Browse Source

rm flyout navigation on provider page and add alt tag->title to provider image

windhamdavid 1 month ago
parent
commit
d3aeb49332
2 changed files with 10 additions and 1 deletions
  1. 9 0
      functions.php
  2. 1 1
      inc/physicians-temp.php

+ 9 - 0
functions.php

@@ -24,6 +24,15 @@ function av_change_logo_link($link)
     return $link;
 }
 
+/****************
+ * remove left/right provider navigation
+*****************/
+function no_post_nav($entries)
+  {
+      $entries = array();
+      return $entries;
+  }
+add_filter('avia_post_nav_entries','no_post_nav');
 
 /****************
  * add AVIA Framework (enfold theme) shortcodes to the wysiwyg

+ 1 - 1
inc/physicians-temp.php

@@ -9,7 +9,7 @@ function srh_post_thumbnail() {
     ?> 
  
     <div class="post-thumbnail"> 
-        <?php the_post_thumbnail(); ?> 
+        <?php the_post_thumbnail( 'post-thumbnail', array( 'alt' => get_the_title() ) ); ?> 
     </div><!-- .post-thumbnail --> 
  
     <?php else : ?>