Filbert
Member
Posted 6 months ago #
Hello
I have a Twenty Ten Child theme set up.
I have added a featured image to my shop page
http://www.windsorartscene.com/windsor-arts-shop/
When I loaded the image in the page editor using 'Set Featured Image', I changed the File URL to point to the artist's page and choose 'Upload as Featured Image'
However when I click on the header it takes you to the Home Page.
Can anyone advise on how to change the code for this particular page? I am assuming that the header.php is the one but am just getting to grips with CSS and php as I grow this site.
Thanks in advance
I think there is an option in the admin panel to have your header link to your homepage. You might want to de-select this option.
Although, I'm not sure if it was intended for the link to work properly when the featured image is being used as a header. I think this is more for excerpts, etc. (could be wrong)
Filbert
Member
Posted 6 months ago #
Hi - thanks for the reply.
I don't see that option within the dashboard/Appearance/Header area unfortunately.
I seem to remember having to change some code in my header.php - did this last year so I can't remember exactly what I did!
Is it something to do with this..
<div id="branding" role="banner">
<?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
<<?php echo $heading_tag; ?> id="site-title">
<span>
<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"
Sorry to be dim here!!