WordPress.org

Forums

[resolved] Link not showing up and problems with layout (5 posts)

  1. FabMon
    Member
    Posted 1 year ago #

    Hello there

    I´ve integrated wordpress blog into my existing website but i have a problem with the <img in a href links not showing up as you can see from the screenshot:

    http://tinypic.com/view.php?pic=16bwxw7&s=8

    I don´t understand why this happens since the images are inside a folder called images in the directory of my website.
    To explain things better i have index.php calling the header with get_header function while the header.php calls my site_logo where it calls the images through a href="link.html"><img src="images/something.png"

    Am i missing something?

    Another question is that i´m not centering the blog posts content properly. Why does the blog post not show up right below the header?

  2. ypeiffer
    Member
    Posted 1 year ago #

    You have to use the full path to the img. To do so, you have to use something linke this:

    <img src="<?php bloginfo('template_directory'); ?>/images/something.png">

  3. FabMon
    Member
    Posted 1 year ago #

    Thanks. I already found out that i had to use the full path to the images instead of using the path to the folder containing the images.

  4. TrishaM
    Member
    Posted 1 year ago #

    Hey FabMon be sure to mark your topic "resolved'….this helps others who try to help out in the forum…..thanks!

  5. FabMon
    Member
    Posted 1 year ago #

    Didn´t know about that option...gotcha now, thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.