• Hallo! I would like to have a background header slider instead of a still picture. I am working with “Cyclone Slider” and have tried to paste the .php code into the header.php and it does not seem to work.
    It displays the photo slider not under the Title of the site (not in a sandwich format) but first displays the photo slider and underneath it the title of the site, the description and the body. I have tried both under <header id=”masthead” class=”site-header” role=”banner”> and under <div class=”overlay”> </div> with no luck! I am also using a child theme..
    http://demo.flyfreemedia.com/oblique
    This is the code…could you please help?

    <header id=”masthead” class=”site-header” role=”banner”>
    <div class=”overlay”> </div>
    <?php if( function_exists(‘cyclone_slider’) ) cyclone_slider(‘header-slide-show’); ?>
    <div class=”container”>
    <div class=”site-branding”>
    <?php if ( get_theme_mod(‘site_logo’) && get_theme_mod(‘logo_style’, ‘hide-title’) == ‘hide-title’ ) : //Show only logo ?>
    ” title=”<?php echo esc_attr(get_bloginfo(‘name’)); ?>”>” alt=”<?php echo esc_attr(get_bloginfo(‘name’)); ?>” />
    <?php elseif ( get_theme_mod(‘logo_style’, ‘hide-title’) == ‘show-title’ ) : //Show logo, site-title, site-description ?>
    ” title=”<?php echo esc_attr(get_bloginfo(‘name’)); ?>”>” alt=”<?php echo esc_attr(get_bloginfo(‘name’)); ?>” />
    <h1 class=”site-title”>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>
    <h2 class=”site-description”><?php bloginfo( ‘description’ ); ?></h2>
    <?php else : //Show only site title and description ?>
    <h1 class=”site-title”>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>
    <h2 class=”site-description”><?php bloginfo( ‘description’ ); ?></h2>
    <?php endif; ?>
    </div><!– .site-branding –>
    </div>
    <div class=”svg-container header-svg svg-block”>
    <?php oblique_svg_1(); ?>
    </div>
    </header><!– #masthead –>

    https://wordpress.org/plugins/cyclone-slider-2/

The topic ‘Slider in header’ is closed to new replies.