Trying to use MetaSlider as header in Ixion theme
-
Hello,
I am helping to create a new website for my neighborhood. We would like to use MetaSlider to replace the existing randomized header image the comes with the Ixion theme. We would like it to be responsive/stretched so all header images are the same dimensions (like theme’s original slider).
I’ve created a trial slider and its code is:
<?php echo do_shortcode(‘[metaslider id=”4169″]’); ?>
Here is what I think the relative code that I need to change:
<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 ?>Any help that you can provide is most appreciated! Thank you in advance.
The page I need help with: [log in to see the link]
- The topic ‘Trying to use MetaSlider as header in Ixion theme’ is closed to new replies.