changing from default permalinks break images (2 posts)

  1. swollenbrain
    Posted 7 years ago #

    when I tried to change from the default Permalinks setting, it seems to break my sidebar image as well as my header image. Any suggestions? thanks in advance.


  2. The reason it breaks your images is that you are using relative paths for those images. Your header, for example, is this code:

    <img src="images/barnaclebannerSmall.jpg" width="395" height="141" >

    That's wrong. Use the full path to the image, like this:

    Then it won't break.

    Ideally, you would put those images into your theme directory, and then you could use code like this:

    <img src="<?php bloginfo('stylesheet_directory'); ?>/images/barnaclebannerSmall.jpg" width="395" height="141" >

    And then it would work even if you changed the blog's address.

Topic Closed

This topic has been closed to new replies.

About this Topic