Support » Fixing WordPress » Coding an image link in a child theme

  • Resolved nathan12343

    (@nathan12343)


    I’m making a child theme and want to code a link to a logo into the header. But when I use <img src="<?php bloginfo('template_directory'); ?>/img/logo.png" /> it is looking in the parent directory not the child.

    Any idea how – without hardcoding the URL – I can get to the img folder in the child theme?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Coding an image link in a child theme’ is closed to new replies.