Skip to content

Commit

Permalink
Merge pull request #1147 from equalizedigital/dev/pricing-block
Browse files Browse the repository at this point in the history
title override
  • Loading branch information
tronsymphony authored Apr 4, 2024
2 parents 2a13e1c + c614c59 commit a557a76
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion inc/loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ function eqd_single_header() {
$link = get_field( 'single_post_link', $page_id );
$output = null;
$container_class = '';
$title_override = get_field('title_override', $page_id);


if ( get_field( 'post_format_style' ) === 'full-width' ) {
$container_class .= 'hero_relative';
} else {
Expand All @@ -113,7 +116,13 @@ function eqd_single_header() {
// Title
?>
<h1 class="title" style="<?php echo wp_kses_post( ! empty( $title_max_width_desktop ) ? 'max-width:' . $title_max_width_desktop . '%;' : '' ); ?>">
<?php echo wp_kses_post( get_the_title() ); ?>
<?php
if($title_override){
echo wp_kses_post($title_override);
} else {
echo wp_kses_post( get_the_title() );
}
?>
</h1>

<?php
Expand Down

0 comments on commit a557a76

Please sign in to comment.