Support » Fixing WordPress » Loading image undefined

  • Hello,

    I’m building a portfolio website for a friend, and I’m having a problem with the loading button. The image that is supposed to come up when new posts are being loaded is not being recognised. I’ve checked the code and it’s the correct image address.

    The website is and it’s using the WordPress theme Grid Theme Responsive by

    I would be happy to edit the html and take out the image and just have text which says loading, but I can’t access the html code through the editor. I think I must be missing something.

    When I click View Source it says this:
    <a href=""><img src="" /></a>

    And in Inspect Elements in Google Chrome it says this:
    <img alt="Loading..." src="undefined">

    But in WordPress editor, what I’m pretty sure is the relevant section says:

    	next_posts_link('<img src="' . get_bloginfo('stylesheet_directory') . '/images/loading-button.jpg" />');
    	$buffer = ob_get_contents();
    	if(!empty($buffer)) echo $buffer;

    Can anyone help? I’m pretty sure I’m looking at this problem the wrong way. I would really appreciate any advice. Thanks so much!

  • The topic ‘Loading image undefined’ is closed to new replies.