Retaining site tagline/call to action button with slider header
-
Hello,
I am using the MetaSlider plugin instead of the default header image in Ixion. I have it working to my liking but cannot get the call to action button and site tagline to appear.
Here is the code that I started with:
<div class=”front-page-wrapper”>
<div class=”header-overlay”>
<?php if ( get_header_image() ) : ?>
” width=”<?php echo esc_attr( get_custom_header()->width ); ?>” height=”<?php echo esc_attr( get_custom_header()->height ); ?>” alt=””>
<?php endif; ?>
<div class=”site-description-wrapper”>
<?php $description = get_bloginfo( ‘description’, ‘display’ );
if ( $description || is_customize_preview() ) : ?>
<p class=”site-description”><?php echo $description; /* WPCS: xss ok. */ ?></p>
<?php endif; ?><?php
$button = get_theme_mod( ‘ixion_button_text’, ” );if ( ” !== $button || is_customize_preview() ) : ?>
” class=”button callout-button”><?php echo esc_html( $button ); ?>
<?php endif; ?>
</div><!– .site-description-wrapper –>
</div><!– .header-overlay –>
<?php get_template_part( ‘components/features/featured-content/display’, ‘featured’ ); ?>
</div><!– .front-page-wrapper –>
<?php endif; // End is_front_page() check ?>And here is what I am using today:
<div class=”front-page-wrapper”>
<?php echo do_shortcode(‘[metaslider id=”4172″]’); ?>
<?php $description = get_bloginfo( ‘description’, ‘display’ );
if ( $description || is_customize_preview() ) : ?>
<p class=”site-description”><?php echo $description; /* WPCS: xss ok. */ ?></p>
<?php endif; ?><?php
$button = get_theme_mod( ‘ixion_button_text’, ” );if ( ” !== $button || is_customize_preview() ) : ?>
” class=”button callout-button”><?php echo esc_html( $button ); ?>
<?php endif; ?>
<?php get_template_part( ‘components/features/featured-content/display’, ‘featured’ ); ?>
</div><!– .front-page-wrapper –>I’ve had some success in the MetaSlider topic (HERE) with the help of @kbatdorf.
Any help is much appreciated. Thank you!
The page I need help with: [log in to see the link]
- The topic ‘Retaining site tagline/call to action button with slider header’ is closed to new replies.