Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

images not showing up in wordpress

Featured Replies

I don't use wordpress too often so please excuse my ignorance.

I am trying to do a direct call to the image using the html tag:

<img src="images/imagename.jpg">

 

I am also trying to put a jquery slideshow in the index.php and it's not showing up.

Am I not following some wordpress rule? I notice in template css styles they call directly to the images and it works, like this for example:

background url(images/imagename.jpg);

 

 

Any thoughts here? I am on a major deadline and this has halted me.

  • Author

Sorry but I figured it out.

You need to call files in the html in their full path

 

wp-content/themes/THEME-NAME/images/image-name.jpg

 

 

awesome.

  • Author

You really don't. I imagine your short paths were messed up somehow.

 

 

well I was calling to the images as

<img src="images/image-name.jpg"> 

and that wasn't working.

 

should that typically work? Because as soon as I changed it to:

<img src="wp-content/theme-name/images/image-name.jpg">

it started to work.

 

but the problem I have now is, I was calling to that image in my header (it's a banner ad)

so now when you go to say www.site.com/about/ it breaks the image because I'm guessing because it's no longer in that same directory.. I'm thinking about calling to a template that has the banner in it instead of the image directly like say:

<?php include(TEMPLATEPATH . '/header-banner.php'); ?>

 

seems to be working in the sidebar.php for the square ads.

 

Is there something I am missing here as to why the direct call to an image isn't working?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.