Add image into widget
-
hey there, i am trying to make my widget echo an image through the backend (not change-able by user) but i keep getting an error,
i am trying to do something along these lines
echo '<img src="<?php bloginfo('template_directory'); ?>/inc/img/logo.png">' . PHP_EOL
but due to the fact it would literally print the php part inside as text, i get an error, and ideas on a workaround?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add image into widget’ is closed to new replies.