my first question; where do i have to put this code within my wordpress site? i made a seperate randomimage.php file, is that right?
further i put 1.jpg and 2.jpg into my theme image folder, change the path and the image names in the php code
and to put the line: <?php include "randomimage.php"; ?> into my header.php
i guess into this string of my existing wp theme somehow:
Code: Select all
<a href="<?php bloginfo('url'); ?>"><img class="logo" src="<?php bloginfo('template_directory'); ?>/images/logo_pros.jpg" alt="<?php bloginfo('name'); ?>" /></a>
would be very nice if you could help, thank you!