• i am using zbench theme
    i am trying to add an extra column (About) on the side bar (sidebar.php). Here is the code

    <ul>
    	<li class="widget">
    		<h3>About illusual</h3>
    		<ul>
    			<p>Hi There!</p>
    		</ul>
    	</li>
    </ul>

    No problem with that! it works just fine.

    But when I try to add an img tag with <p>, the image doesn’t display at all!
    I’ve tried using width and height properties to smaller the image size but still, it won’t display anything!
    The image does exist in the directory, no doubt with that!!!

    Here is the code:

    <ul>
    	<li class="widget">
    		<h3>About illusual</h3>
    		<ul>
    			<p>Hi There!<img src="koala.png" alt=""/></p>
    		</ul>
    	</li>
    </ul>

    could someone please help resolve the issue?

    will really appreciate!!

Viewing 1 replies (of 1 total)
  • Assuming the image is in your theme’s images folder:

    <img src="<?php bloginfo('stylesheet_directory'); ?>/images/koala.png" alt=""/>

    Never use relative urls in WordPress.

Viewing 1 replies (of 1 total)
  • The topic ‘zbench theme help’ is closed to new replies.