WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] A strange problem with images (9 posts)

  1. bobin
    Member
    Posted 5 years ago #

    Hi All
    I have strange problem with one of my blog, http://thesocialmediasource.com, everything is fine in the home page , but if you click on a single post page http://thesocialmediasource.com/social-media-mania/makes-money the images on the top(twitter, youtube images) is getting displayed , i am cracking my head from last 2 days , somebody please help.. its very urgent.

    Any help will be highly appreciated

    Thanks
    Bobin

  2. stvwlf
    Member
    Posted 5 years ago #

    That is generally from using relative paths to image file locations, which does not work in WordPress.

    Also, while looking at your page, you have an unusually high number of errors in your CSS stylesheet. Then I just validated the single page and there are 82 errors, including a number of missing closing tags, and tag mismatches.
    http://validator.w3.org/check?uri=http://thesocialmediasource.com/social-media-mania/makes-money

    You can get to the CSS validator from that same page.
    All of those errors can in places lead to strange results in browsers, especially in IE. You would be wise top clean up as many as you can figure out the source of.

  3. bobin
    Member
    Posted 5 years ago #

    thanks for the reply,

    but in the home page it works fine right? the same header getting called everywhare. can you suggest how to use the images other than this way?

  4. stvwlf
    Member
    Posted 5 years ago #

    That it works correctly on the home page and not on the inner pages is exactly why you can't use relative paths to files in WordPress. All paths must be from the root of the site.

    The problem is on inner pages they are being called from within a different folder, and the relative path no longer finds those files where they are actually located. Look at the URL's you posted -
    http://thesocialmediasource.com is at the top level, and the paths work fine

    http://thesocialmediasource.com/social-media-mania/makes-money is one or two folders deeper so the relative paths don't work. Its as simple as starting your image paths with a "/"

  5. lasvention
    Member
    Posted 5 years ago #

    I ran the validator and got this result.

    178 Errors, 77 warning(s)

    I run a travel related site and I noticed the bookings went away after May 2, 2009. Yesterday I did a lot of checking with my friends and IE 7 the sites a bunch of jibberish and IE 8 it does not load at all. It also has issues in Netscape and Yahoo. I use Fire Fox and it seems to work fine.

    The site is http://www.lasventions.com I really could you use the help in cleaning theses up and resolving the problem. I have no idea how to do it and would be more than happy to pay someone for their time before I am out of business!

    Thanks:

    John

  6. bobin
    Member
    Posted 5 years ago #

    Hi stvwlf,

    That makes sense, let me try it and let you know , i really appreciate the time taken to reply.

    thanks again

  7. bobin
    Member
    Posted 5 years ago #

    Hi stvwlf,

    i found out the problem , in my Permalink Settings it was set to custom structure.(/%category%/%postname%) , when i changed that to default structure it is working fine.

    Any thoughts on this?

    Bobin.

  8. stvwlf
    Member
    Posted 5 years ago #

    Hi

    Now that you've changed them to default, try changing them back to what they were. Sometimes changing to default resets some internal WP settings and after that permalinks will work correctly.

    I do see the correct full path to the images on your single page now.

  9. bobin
    Member
    Posted 5 years ago #

    i just made it , it is working fine.

    i used the full path .

    thanks for the help dude , YOU ROCK!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags