• Hello, Im quite a novice when it comes to wordpress and I’ve run into a problem. I was trying to make only the header image show on the front page so I added:

    <?php if(is_home) { ?>
    
      <div class="head-img">
      ...
      </div>
      <!-- END Header -->
    
    <?php } ?>
    
    Around
    
    	<?php $header_image = get_header_image();
    		if ( ! empty( $header_image ) ) : ?>
    			<a>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
    
    <?php } ?>

    It didnt work, and when I removed the the thing I added it now shows a http 500 error which wont go away.

    Can anyone see in that last code-text what is wrong?

Viewing 1 replies (of 1 total)
  • Which template did you change? Only header.php? Or more files? Try replacing the files you changed with unedited copies and see if it helps.

    BTW, Error 500 is too generic and can be due to various reasons.

    Never edit theme files directly. Instead create child themes for your edits/ modifications.

Viewing 1 replies (of 1 total)

The topic ‘Getting http 500 error’ is closed to new replies.