• Hi guys,

    I have noticed (even if i change the image many times); the header image and footer image has NO ALT value.

    I even delete the header and footer and make sure the i provided the ALT TAG for each image file, still no avail.

    Anybody can help please?

    Thanks,

    Julius

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey there Julius,

    Hope you’re well! ??

    The alt for header image is not a problem since I can see one from my install but the footer got not alt value at all. It’s because the value is not being display / echo. To fix the footer alt issue.

    Follow the steps below but first use child themes for any customisation you will make. Read more about it here: https://codex.www.ads-software.com/Child_Themes

    Create a new file name ‘footer.php’ inside your child theme then put the code you will find here: https://gist.github.com/calvincanas/52489fe46d6ef295fbc1

    This will simply override the footer.php of parent theme ( which is hueman )

    Hope it helps! ??

    Take care,
    Calvin

    Thread Starter santebarleyreviewhq

    (@santebarleyreviewhq)

    Hi Calvin,

    Thank you for your response and sorry for late reply. I just did update my site with the footer codes you have provided and it work.

    However, even if i uploaded different image file in the header – still there is no ALT entry. Can you please provide the same code as in the footer?

    thank you.

    Thread Starter santebarleyreviewhq

    (@santebarleyreviewhq)

    Hi guys,

    Anybody can help? The logo ALT tag does not exist in the HEADER.

    I’ve manage to fixed the FOOTER ALT tag issue by following what was suggested by Calvin. But for the header alt tag – not working.

    thanks

    Hi santebarleyreviewhq. This is the code from header.php that handles the header image. It appears to be creating an <alt> attribute:

    <?php if ( ot_get_option('header-image') ): ?>
    	<a href="<?php echo home_url('/'); ?>" rel="home">
    		<img class="site-image" src="<?php echo ot_get_option('header-image'); ?>" alt="<?php get_bloginfo('name'); ?>">
    	</a>
    <?php endif; ?>

    Here is the relevant information on the get_bloginfo() function in the Codex.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Header & Footer image has NO ALT TAG value’ is closed to new replies.