• https://www.rockitpro.com

    I think I’m doing something wrong with the conditional tag. I’ve got that smallbanner.jpg image showing up correctly on the home page and no where else, but now if you go to any other page, you can’t select anything that I moved up. It’s like the banner is still there but it’s invisible. For example, go to https://www.rockitpro.com/2008/02/10/last-stand/ and try to click the podpress player, nothing happens. It’s blocking that content.

    I’m using this conditional tag in my index.php file:

    <?php if ( is_home() ) { ?>
    <img src="https://www.rockitpro.com/wp-content/themes/freshblue-idea-10/images/smallbanner.jpg" border="0" width="488" height="122" />
    <?php } ?>

    And I went into my style.css and moved the content up using:

    /* Content */
    
    #main {
    	float: left;
    	width: 450px;
    	margin: 0 auto;
    	padding: 10px 30px 0px 15px;

    What I’m missing here? I’m not very good with coding and php so I’m sure it’s something simple.

Viewing 1 replies (of 1 total)
  • Thread Starter producer82

    (@producer82)

    Ok I think I need an “else > do nothing” type tag added onto that. What code should I add so that it does “nothing” or shows “nothing” if it’s not on the home index page?

Viewing 1 replies (of 1 total)
  • The topic ‘Home page nonstatic image blocking my other pages’ is closed to new replies.