Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
MSF
/
msf-climate-hub
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2073f331
authored
2023-08-31 19:05:07 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
read more
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
24ee969b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
wp-content/themes/msf-child/blocks/carousel/carousel.php
wp-content/themes/msf-child/inc/extras.php
wp-content/themes/msf-child/blocks/carousel/carousel.php
View file @
2073f33
...
...
@@ -51,7 +51,7 @@ $carousel_style = get_field('carousel_style');
<?php
echo
get_the_post_thumbnail
(
$page
->
ID
,
'thumbnail'
);
?>
</div>
<div
class=
"col-lg-8 col-md-12"
>
<div
class=
"promo-text"
>
<?php
echo
get_the_excerpt
(
$page
->
ID
);
?>
</div>
<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>
</div>
</div>
</div>
...
...
wp-content/themes/msf-child/inc/extras.php
View file @
2073f33
...
...
@@ -244,10 +244,11 @@ if ( ! function_exists( 'understrap_all_excerpts_get_more_link' ) ) {
$permalink
=
esc_url
(
get_permalink
(
(
int
)
get_the_ID
()
)
);
// @phpstan-ignore-line -- post exists
return
$post_excerpt
.
' [...]<a class="understrap-read-more-link" href="'
.
$permalink
.
'">'
.
__
(
' Read More'
,
'understrap'
)
.
'<span class="screen-reader-text"> from '
.
get_the_title
(
get_the_ID
()
)
.
'</span></a>'
;
// return $post_excerpt . ' [...]<a class="understrap-read-more-link" href="' . $permalink . '">' . __(
// ' Read More',
// 'understrap'
// ) . '<span class="screen-reader-text"> from ' . get_the_title( get_the_ID() ) . '</span></a>';
return
$post_excerpt
;
}
}
...
...
Please
register
or
sign in
to post a comment