Skip to content

Commit

Permalink
Merge pull request #948 from equalizedigital/feature/local-dev-branch
Browse files Browse the repository at this point in the history
cta btn
  • Loading branch information
tronsymphony authored Nov 9, 2023
2 parents 34776fa + d93a4a1 commit 4976379
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ function eqd_single_sidebar() {
// Standard Format.
if ( is_single() && get_post_type() == 'post' ) {
$layout_style = get_field( 'post_format_style' );

$header_main_link = get_field( 'header_main_link', 'option' );
if( empty( $layout_style ) ) {
$layout_style = 'standard';
}
Expand Down Expand Up @@ -416,7 +416,11 @@ function eqd_single_sidebar() {
<span class="text">Jump to</span>
</button>
<div class="cta-btn">
<a href="" class="btn">Get Help</a>
<?php if ( ! empty( $header_main_link ) ) : ?>
<a href="<?php echo ! empty( $header_main_link ) ? $header_main_link['url'] : ''; ?>" <?php echo ! empty( $header_main_link['target'] ) ? 'target="' . $header_main_link['target'] . '"' : ''; ?> class="btn">
<?php echo ! empty( $header_main_link ) ? $header_main_link['title'] : 'Get Help'; ?>
</a>
<?php endif; ?>
</div>
</div>
<div class="contents-nav-mobile-menu"></div>
Expand Down

0 comments on commit 4976379

Please sign in to comment.