I have these code from my wordpress theme, i want my background image to have a link to other website
<?php get_header(); ?>
<?php if (class_exists('BlackfyreMultiPostThumbnails')) : $custombck = BlackfyreMultiPostThumbnails::get_post_thumbnail_url(get_post_type(), 'header-image', $post->ID, 'full' ); endif; ?>
<?php if(empty($custombck)){}else{ ?>
<style>
body.page{
background-image:url(<?php echo esc_url($custombck) ; ?>) !important;
background-position:center top !important;
background-repeat: no-repeat !important;
}
</style>
<?php } ?>
Something like this might be suitable:
From this forum