read more
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
2 changed files
with
6 additions
and
5 deletions
| ... | @@ -51,7 +51,7 @@ $carousel_style = get_field('carousel_style'); | ... | @@ -51,7 +51,7 @@ $carousel_style = get_field('carousel_style'); |
| 51 | <?php echo get_the_post_thumbnail( $page->ID, 'thumbnail' ); ?> | 51 | <?php echo get_the_post_thumbnail( $page->ID, 'thumbnail' ); ?> |
| 52 | </div> | 52 | </div> |
| 53 | <div class="col-lg-8 col-md-12"> | 53 | <div class="col-lg-8 col-md-12"> |
| 54 | <div class="promo-text"><?php echo get_the_excerpt($page->ID); ?></div> | 54 | <div class="promo-text"><?php echo get_the_excerpt($page->ID); ?> <a class="understrap-read-more-link" href="<?php echo get_permalink($page->ID);?>">READ MORE</a></div> |
| 55 | </div> | 55 | </div> |
| 56 | </div> | 56 | </div> |
| 57 | </div> | 57 | </div> | ... | ... |
| ... | @@ -244,10 +244,11 @@ if ( ! function_exists( 'understrap_all_excerpts_get_more_link' ) ) { | ... | @@ -244,10 +244,11 @@ if ( ! function_exists( 'understrap_all_excerpts_get_more_link' ) ) { |
| 244 | 244 | ||
| 245 | $permalink = esc_url( get_permalink( (int) get_the_ID() ) ); // @phpstan-ignore-line -- post exists | 245 | $permalink = esc_url( get_permalink( (int) get_the_ID() ) ); // @phpstan-ignore-line -- post exists |
| 246 | 246 | ||
| 247 | return $post_excerpt . ' [...]<a class="understrap-read-more-link" href="' . $permalink . '">' . __( | 247 | // return $post_excerpt . ' [...]<a class="understrap-read-more-link" href="' . $permalink . '">' . __( |
| 248 | ' Read More', | 248 | // ' Read More', |
| 249 | 'understrap' | 249 | // 'understrap' |
| 250 | ) . '<span class="screen-reader-text"> from ' . get_the_title( get_the_ID() ) . '</span></a>'; | 250 | // ) . '<span class="screen-reader-text"> from ' . get_the_title( get_the_ID() ) . '</span></a>'; |
| 251 | return $post_excerpt; | ||
| 251 | 252 | ||
| 252 | } | 253 | } |
| 253 | } | 254 | } | ... | ... |
-
Please register or sign in to post a comment