Image above ‘content’
-
Hello,
I am trying to put an image above the content and below the header in my theme but am having trouble doing so. The image can sit within the content div but needs to appear at the top of it, I need the image to be either the wide version or not depending on whether the sidebar is there or not. In header.php it defines either the wide bg or not so I think the image I want to put in should go here as well but Im not sure of the syntax.So basically, I want to add and image above the content background as defined below which will only repeat once in Y to nicely round off the current hard edge of the background.
<?php // Checks to see whether it needs a sidebar or not if ( empty($withcomments) && !is_single() ) { ?> #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/byelliotowen-bg-ltr.png") repeat-y top; border: none; } <?php } else { // No sidebar ?> #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/byelliotowen-bg-wide.png") repeat-y top; border: none; } <?php } ?>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Image above ‘content’’ is closed to new replies.