• cliftonseth

    (@cliftonseth)


    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]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Gemma Evans

    (@gemmaevans)

    Hi @cliftonseth,

    I am using the MetaSlider plugin instead of the default header image in Ixion.

    By default, Ixion isn’t designed to use other plugins for displaying header images — this functionality is already integrated with the theme. Since you are using custom code, I recommend contacting a developer for further help if no-one else can share any recommendations here. The WordPress Professional Network is a great place to look if you don’t already know someone:

    https://jetpack.pro/

    It may also be worth contacting the plugin author for advice if you believe the plugin isn’t working as it should — it is the plugin author’s responsibility to ensure it works across various themes.

    Thread Starter cliftonseth

    (@cliftonseth)

    Thanks @gemmaevans. Maybe I’ll remove the MetaSlider plugin and revert back to the Ixion header image code. If I do that, would you have any recommendation for how I could change the header so that there are multiple header images that automatically and randomly rotate? Perhaps with a fade transition between each image?

    Gemma Evans

    (@gemmaevans)

    This would require customisation beyond what is offered by the theme (one header image is supported at a time) so asking a developer for advice will be the best way forward from here ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Retaining site tagline/call to action button with slider header’ is closed to new replies.