Custom header link image to attachment
-
Hi,
I have installed a custom header in our new website’s theme, and added code so that it will link to whatever page that image is attached to. THis has worked in one instance (a category header), but not in the default custom header image.
The code I have added is along the lines of:
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
<!--add custom header image--> <div><a>"><img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="The Free Ride Voice - True Independent Surf Journalism" class="custom_header" /></a></div> </header><!-- /#header -->
with the href php being the culprit in question.
The URL is https://www.thefreeridevoice.com.
This website goes live tmrw for a surf comp.
For now I have hardcoded the link URL, but this of course is affecting the one category header set so far as well, not ideal (https://www.thefreeridevoice.com/category/the-outsider/)The URL is https://www.thefreeridevoice.com/
Please help!
- The topic ‘Custom header link image to attachment’ is closed to new replies.