• I need to do a layout which has another slider (in header) on every page (exactly 7 pages). How should I make this?
    I thought that maybe I could make 7 copies of header.php (header1,2,3.php…. etc.)
    But how I display each header.php? For example get_header1 will working?
    I use Cyclone Slider with php code in header.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi

    I think there are many possible ways…

    Maybe something like :

    #page-1 { header-image: url(‘http://www.xyz/1.jpg’); }

    #page-2 { header-image: url(‘http://www.xyz/2.jpg’); }

    in the css..

    (the numbers must be the page id found in the “preview”)

    I’m not sure…try! 🙂

    Another guess: there is a plugin for that!

    rangi

    you could try a list of conditional statements in header.php; example:

    <?php
    if( is_page( 'page-one' ) ) : echo do_shortcode('[cycloneslider id ="my-slideshow-one"]');
    elseif( is_page( 'page-two' ) ) : echo do_shortcode('[cycloneslider id ="my-slideshow-two"]');
    else : echo do_shortcode('[cycloneslider id ="my-slideshow-default"]');
    endif;
    ?>

    possibly better ask in the plugin’s direct support section http://wordpress.org/support/plugin/cyclone-slider

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Another slider in header on every page’ is closed to new replies.