WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Image Tag Not Working (6 posts)

  1. parham90
    Member
    Posted 1 year ago #

    Hi,

    In my custom theme and multisite installation, I'm trying to output an image tag. The code I'm using is:

    <br />
    <img class="pipe-img" src="<?php bloginfo('template_url') ?>/img/logo-pipe.jpg" /><br />

    This produces the following tag:

    <br />
    <img class="pipe-img" src="http://polico.simdad.com/wp-content/themes/polico/img/logo-pipe.jpg" /><br />

    This should work, except it doesn't. It leads to a WordPress 404 page that says this page doesn't exist.

    I have refreshed my permalinks by going to settings > permalinks and clicking on save so that the .htaccess would get regenerated. However, I still have no luck.

    [mod: moved to 'Multisite']

  2. parham90
    Member
    Posted 1 year ago #

    Hi,

    That's the point. I have a theme named Polico that is inside wp-content/themes, and it does contain an img folder which contains logo-pipe.jpg. However, this URL doesn't work for some reason.

  3. parham90
    Member
    Posted 1 year ago #

    Oh, stupid me. The capitalization was wrong; the file is logo-pipe.JPG, not jpg.

    Sorry for taking you guys' time :(

  4. S'all good :D (For the rest of you - many webservers are case sensitive).

  5. dbabs
    Member
    Posted 1 year ago #

    Ipstenu please what do i do with a multisite installation in which the sliders are not working.i have tried it with different themes.

Topic Closed

This topic has been closed to new replies.

About this Topic