single posts doesn't show header (7 posts)

  1. emaarkhan
    Posted 3 years ago #

    i have a website, when i click on a post title, it goes to post page but the layout is different. i mean the header doesn't display the header image like in other pages template. wht can i do to fix it?

  2. Michael
    Part-Time Forum Moderator
    Posted 3 years ago #

    please post an example link to a post where this happens.

    what browser are you using?
    is the html code of the header image still in the html code of that web page in the browser?
    do these post pages validate - http://validator.w3.org/ ?

  3. Krishna
    Volunteer Moderator
    Posted 3 years ago #

    Your site appears to be quite OK. The Home page has a different layout from all other pages that have another layout. It is something to do with your design/ theme, and not a WordPress problem, as far as I can see. I have seen various sites/ themes designed this way.

  4. emaarkhan
    Posted 3 years ago #

    I was able to sort it out. it was missing a trailing / , i don't know why on homepage it could display images with url like wp-content/ but when in pages it didn't, so i had to put / in front of wp-content and its worked. can you pls tell me what is difference between absolute and relative path link?

  5. esmi
    Forum Moderator
    Posted 3 years ago #

    You should never use relative urls in WordPress itself (relative urls in stylesheets should be fine) as the results will be unpredictable. Stick to absolute (full) urls.

  6. emaarkhan
    Posted 3 years ago #

    what's the difference? in abs and rel url and why not use rel links

  7. esmi
    Forum Moderator
    Posted 3 years ago #

    Look at how the theme templating system works. It should be fairly obvious that a relative link within a template file will be relative to wp-content/themes and not the root folder.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.