• SCO7TY

    (@sco7ty)


    I have change the followinf from –

    echo $before_widget;
    	if ($title) {
    	echo $before_title . $title . $after_title;
    <strong>To this	</strong>
    echo $before_widget;
    	if ($title) {
    		echo $before_title . '<img src=”http://1050228110.test.prositehosting.co.uk/wp-content/uploads/2012/04/Untitled-6.jpg”>’' . $after_title;

    [Moderator Note: Please post code or markup snippets between backticks or use the code button.]

    The title now doesnt show but no image appears. Can anyone tell me what i’m doing wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael

    (@alchymyth)

    make sure to use " and ' instead of and
    (these squint ones come from a bad copy/paste)

    then post a link to your site so someone can check what code got rendered for the browser.

    or have a look your self – ‘view source’ in the browser tool bar;

    or use a tool such as Firebug http://getfirebug.com/

    Thread Starter SCO7TY

    (@sco7ty)

    Thankyou, that seems to be what the problem was 😀

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘replacing sidebar title for image’ is closed to new replies.