Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter stuart1971

    (@stuart1971)

    i’ve found a suitable slider and have the codex snippet but where do i enter it to create the slider and remove the header image ?

    Which slider are you using?

    Thread Starter stuart1971

    (@stuart1971)

    Slide deck

    Sorry I don’t know Slide deck. I tend to use Cimy Header Image Rotator.
    If you want to see it working with a 2010 site you can have a look here

    Thread Starter stuart1971

    (@stuart1971)

    how did you add the slider into your site ?

    i have the relevant code but do not know where to add it…

    if i knew where you made your amendments i could possibly just replace the same text with my code…

    I altered the header.php file I found this bit

    <?php
    // Check if this is a post or page, if it has a thumbnail, and if it's a big one
    if ( is_singular() &&
    							has_post_thumbnail( $post->ID ) &&
    ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
    $image[1] >= HEADER_IMAGE_WIDTH ) :
    // Houston, we have a new header image!
    echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
    else : ?>
    <!--
    <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    
    -->
    </div><!-- #branding -->
    <div id="header_image">
    <div id="cimy_div_id">Loading images...</div>
    <!--
    <style type="text/css">
    	#cimy_div_id {
    	/*	float: left;*/
    	clear: both;
    		margin: 0 0;
    		border: 0 solid #000000;
    		width: 100%;
    /*		width: 940px;*/
    		height: 198px;
    	}
    </style>
    -->
    <noscript>
    	<div id="cimy_div_id_nojs">
    		<img id="cimy_img_id" src="https://www.lockettpots.co.uk/wp-content/Cimy_Header_Images/header01.jpg" alt="" />
    	</div>
    </noscript>
    </div> <!--#header_image-->

    Asa you can see I commented out default header_image() bit and added the rotator code

    John

    Thread Starter stuart1971

    (@stuart1971)

    this the code i have been given :

    <?php slidedeck( 621, array( ‘width’ => ‘900px’, ‘height’ => ‘350px’ ) ); ?>

    where would i enter this code ?

    it references recent posts on my site with text and hyperlinks automatically added….

    i’m a novice when it comes to this…as you can tell…:-)

    Hi
    As I said I have not had any experience of Slidedeck but I’ve just had a look at their website.

    I’m not sure that this is the best choice for rotating header images but if I were you I would post your questions on their community help page at
    https://support.slidedeck.com and see what users say.

    Sorry I can’t help more

    Thread Starter stuart1971

    (@stuart1971)

    thanks for your efforts…

    i chose slidedeck lite as i want a photo slider that enables hyperlinks to my posts..

    does anyone have any other recommendations?

    you want to put it in header just place the code with php tags in place of the header image section and if you want to put the slider in your index page just paste this code in your index.php page of your theme before the <div id=”container” >. you might have some issues with css if you put this code in header fix it and keep rolling.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘change header in 2010 theme’ is closed to new replies.