Twenty Twelve
CUSTOM link in the header image (1 post)

  1. narayoko
    Posted 2 years ago #

    So, in the header.php we have:

    <?php $header_image = get_header_image();
    		if ( ! empty( $header_image ) ) : ?>
    			<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><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 endif; ?>

    How can I use a different link and change it via dashboard, like the image itself? I'm making a blog and the owner wants to set up a different url every time she uploads a new header image.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic