Support » Theme: Adventure Journal » Rotating Header

  • If tried to install a few various plug ins that are suppose to make the header photo/banner rotate. After doing so Ive been instructed to replace the header.php code that houses the image which Ive had little luck with any assistance would be greatly appreciated.

    heres a copy of my header.php file

    [ Moderator note: please use the backtick or code button for code snippets like this one. ]

     * @package WordPress
     * @subpackage Adventure_Journal
    $AJOpts = get_option('ctx-adventurejournal-options');
    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
        <meta charset="<?php bloginfo( 'charset' ); ?>" />
                /*Print the <title> tag based on what is being viewed.*/
                global $page, $paged;
                wp_title( '|', true, 'right' );
                // Add the blog name.
                bloginfo( 'name' );
                // Add the blog description for the home/front page.
                $site_description = get_bloginfo( 'description', 'display' );
                if ( $site_description && ( is_home() || is_front_page() ) )
                        echo " | $site_description";
                // Add a page number if necessary:
                if ( $paged >= 2 || $page >= 2 )
                        echo ' | ' . sprintf( __( 'Page %s', 'adventurejournal' ), max( $paged, $page ) );
        <meta name="author" content="Designed by Contexture International |" />
    	<meta name="iconpath" id="iconpath" content="<?php echo get_bloginfo( 'template_directory', 'raw' ); ?>/images/bh" />
        <link rel="profile" href="" />
        <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
                /* We add some JavaScript to pages with the comment form
                 * to support sites with threaded comments (when in use).
                if ( is_singular() && get_option( 'thread_comments' ) )
                        wp_enqueue_script( 'comment-reply' );
                /* Always have wp_head() just before the closing </head>
                 * tag of your theme, or you will break many plugins, which
                 * generally use this hook to add elements to <head> such
                 * as styles, scripts, and meta tags.
    <body <?php body_class(); ?>>
    <?php if($AJOpts['browser-helper']=='true'): ?>
    <div id="browser-helper">
        <div id="bh-bg">
            <table id="bh-notice" cellspacing="0" cellpadding="0" border="0">
                    <td id="bh-icon-td" rowspan="3">
                        <img id="bh-icon" src="" alt="browser icon" width="87"/>
                    <td id="bh-copy">
                        <div id="bh-warning"><?php _e('You are using an insecure version of <span id="bh-browsername">your web browser</span>. Please update your browser!','adventurejournal') ?></div>
                        <div id="bh-explain"><?php _e('Using an outdated browser makes your computer unsafe. For a safer, faster, more enjoyable user experience, please update your browser today or try a newer browser.','adventurejournal') ?></div>
                        <div id="bh-links">
                            <a href="#"><?php _e('Update Your Browser','adventurejournal') ?></a> | <a href=""><?php _e('Try Something New','adventurejournal') ?></a> | <a href="#"><?php _e('Hide This Warning','adventurejournal') ?></a>
        <div id="bh-shadow"></div>
    <?php endif; ?>
        <div <?php echo ctx_aj_get_relationships($post->ID,'siteframe'); ?>>
            <div id="container">
              <div id="container2">
                <div class="nav-horz nav-main" id="menu">
                  <div class="nav-main-left">
                    <div class="nav-main-right">
                        <?php wp_nav_menu( array( 'theme_location' => 'primary-menu' ) ); ?>
                  <div class="nav-main-bottom"></div>
                <div class="clear"></div>
                <!-- end header -->
          <div id="header"><div id="header2"><div id="header3"><div id="header4">
                	<?php ctx_aj_site_title() ;?>
                  <div id="banner">
                    //wp_die('||| '.(string)has_post_thumbnail( $post->ID ).' |||');
                    // 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 )
                        && ( $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 );
                    } else if ( get_header_image() ) {
    <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    	<?php }  ?>
    And now the code Im suppose to replace the to make the image rotate work
    <div id="cimy_div_id_0">Loading images...</div>
    <div class="cimy_div_id_0_caption"></div>
    <style type="text/css">
    	#cimy_div_id_0 {
    		float: left;
    		margin: 1em auto;
    		border: 0px solid #000000;
    		width: 920px;
    		height: 360px;
    	div.cimy_div_id_0_caption {
    		position: absolute;
    		margin-top: 175px;
    		margin-left: -75px;
    		width: 150px;
    		text-align: center;
    		left: 50%;
    		padding: 5px 10px;
    		background: black;
    		color: white;
    		font-family: sans-serif;
    		border-radius: 10px;
    		display: none;
    		z-index: 2;
    	<div id="cimy_div_id_0_nojs">
    		<img id="cimy_img_id" src=" Header ‹ See Lava   Hawaii Lava Boat Volcano Tours — WordPress.htm" alt="" />
  • The topic ‘Rotating Header’ is closed to new replies.