FacebookLinkedInRSSFlickrTwitterVimeoYouTube

kubrickheader.jpg how to change in Wordpress

The default Kubrick WordPress theme contains a really confusing bunch of code to construct the header image. They use PHP to construct the image if you have special image drawing libraries on your web hosting server. If you don’t then it just used a plain old image and you won’t be reading this. But… if you are reading this it means you are having trouble editing/deleting/inserting a new image into the default WordPress theme.

Here is the easiest way to change the kubrickheader.jpg image:

1) open the file /wp-content/themes/default/images/header-img.php

2) go to line # 11 where it says

if ( ! function_exists(‘imagecreatefromjpeg’) )

3) remove the ! from that line so it says

if ( function_exists(‘imagecreatefromjpeg’) )

4) change the the two places where it says kubrickheader.jpg to read kubrickheader1.jpg (or your new header image’s filename)

5) use Mozilla FireFox to view the background image for your WordPress site

6) create a new image and call it kubrickheader1.jpg (or your new header image’s filename)

7) edit the default WordPress theme style.css file and change the code kubrickheader.jpg to kubrickheader1.jpg (or your new header image’s filename)

8) make sure all the files are uploaded to your web hosting server and that should do it

Why they made the theme like this, I dont know?