• I cannot seem to replicate the solution mentioned in the thread ‘Create a widget area below header navigation menu’.

    I want to add a slider to my clients site as per this site: https://www.superiordrainservice.com/

    My code looks like this:

    ‘<?php } ?>
    <?php if ( is_home() || is_front_page() ) { ?>
    <?php if ( get_header_image() != ” ) { ?>
    <div class=”header-image”><?php if( function_exists(‘cyclone_slider’) ) cyclone_slider(‘home_slider’); ?></div>
    <?php } ?>
    <?php } else { ?>
    <?php if ( get_header_image() != ” && $brickyard_options_db[‘brickyard_display_header_image’] != ‘Only on Homepage’ ) { ?>
    <div class=”header-image”><img src=”<?php header_image(); ?>” alt=”<?php bloginfo( ‘name’ ); ?>” /></div>
    <?php } ?>
    <?php } ?>’

    The web address is: https://www.sailingfuncroatia.co.uk/ (although there is nothing to look at yet).

    Any ideas as to what is wrong?

    Thanks,

    Jonathan

Viewing 1 replies (of 1 total)
  • Theme Author TT Themes

    (@tomastoman)

    Dear Jonathan,

    please delete the condition for displaying the header image in your code to make it work:

    <?php } ?>
     <?php if ( is_home() || is_front_page() ) { ?>
     <div class="header-image"><?php if( function_exists('cyclone_slider') ) cyclone_slider('home_slider'); ?></div>
     <?php } else { ?>
     <?php if ( get_header_image() != '' && $brickyard_options_db['brickyard_display_header_image'] != 'Only on Homepage' ) { ?>
     <div class="header-image"><img src="<?php header_image(); ?>" alt="<?php bloginfo( 'name' ); ?>" /></div>
     <?php } ?>
     <?php } ?>

    Best regards,
    Tomas Toman

Viewing 1 replies (of 1 total)
  • The topic ‘Adding slider to header.php’ is closed to new replies.