Wilds
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
I am having this problem as well.
I have my templates set up as %%sitedesc%% %%page%% to avoid duplicated meta descriptions, but the meta description on shows up on the first page.
Wait, I figured it out myself.
<?php // The header image // 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 ), array( HEADER_IMAGE_WIDTH, HEADER_IMAGE_WIDTH ) ) ) && $image[1] >= HEADER_IMAGE_WIDTH ) : // Houston, we have a new header image! ?> <div style="background-image: url('<?php echo $image[0]; ?>'); width: <?php echo $image[1]; ?>px; height: <?php echo $image[2]; ?>px;"><hgroup> <h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1> <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2> </hgroup></div> <?php else : ?>
Viewing 2 replies - 1 through 2 (of 2 total)