• Resolved teamcanada613

    (@teamcanada613)


    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)
  • dimitris33

    (@dimitris33)

    You can use only html

    <img src=”the path from your image you can copy it from your library” />

    in a text widget

    ??

    Thread Starter teamcanada613

    (@teamcanada613)

    Thanks for your reply ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add image into widget’ is closed to new replies.