• Hello
    I have a Twenty Ten Child theme set up.

    I have added a featured image to my shop page
    https://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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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)

    Thread Starter Filbert

    (@filbert)

    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!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add page link to Featured Image’ is closed to new replies.