- This topic has 2 replies, 2 voices, and was last updated 7 years, 1 month ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I would like to create page template with a random top-image just below the black header with logo.
Here is the link to the page so far: http://www.sandvall-demo.dk/page-3/
Right now the random image are showing under the footer i would like to have it under the header.
My code for the page template look like this:
<?php /** * Template Name: TOPIMAGE * Description: Template used for the about page */ genesis(); ?> <img src="http://www.sandvall-demo.dk/wp-content/uploads/headerimage_<?php echo(rand(1,3)); ?>.jpg" width="image_width" height="image_height" alt="image_alt_text" />
Thanks for the reply but how should the code look like then?
© 2023 WPEngine, Inc.