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

  1. FabMon
    Posted 2 years 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:


    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
    Posted 2 years 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
    Posted 2 years 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
    Posted 2 years ago #

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

  5. FabMon
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.