• I have WP seup in Godaddy’s server, I have placed an image named “store.jpg” into the Images folder there with the entire folder structure being:

    wordpress/wp-content/themes/Browsers/images/store.jpg

    In my Browser’s template, I have placed the code:

    <img src=”wordpress/wp-content/themes/Browsers/images/store.jpg” />

    into the header.php file so it shows:

    <div class=”art-Header”>
    <div class=”art-Header-png”></div>
    <div class=”art-Header-jpeg”></div>
    <div class=”art-Logo”>
    <h1 id=”name-text” class=”art-Logo-name”>
    /”><?php bloginfo(‘name’); ?></h1>
    <div id=”slogan-text” class=”art-Logo-text”>
    <?php bloginfo(‘description’); ?></div>
    <img src=”wordpress/wp-content/themes/Browsers/images/store.jpg” />
    </div>

    but the image does not show in the template’s header, help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • instead of:

    <img src="wordpress/wp-content/themes/Browsers/images/store.jpg" />

    try:

    <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/store.jpg" />

    http://codex.ww.wp.xz.cn/Function_Reference/get_stylesheet_directory_uri

    or use the absolute path, starting with http://........

    Thread Starter mikehende

    (@mikehende)

    YES, THAT WORKS, THANKS! 2 things while we’re at this if you won’t mind please? The image is showing to the left of the header, I would like it to fit to the extreme right, also I would like to get rid of the horizontal nav bar, how can I do both please?

    You can view the screenshot here if you wish?

    http://imageshack.us/photo/my-images/52/unledko.jpg/

    suggestion only …
    as above it seems your img src tag doesnt have a open div tag

    <img src="wordpress/wp-content/themes/Browsers/images/store.jpg" />
    </div>

    maybe inplace of above try to insert :

    <div align=right><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/store.jpg" /></div>

    there are other methods through css float:right; to align your image where you want it exactly or through css position etc but try above hope it helps.

    it might probably rectify your image being behind your nav bar .. to remove your nav bar completly will probably get rid of all your links that are auto generated through wordpress??

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem with image path’ is closed to new replies.