Support » Fixing WordPress » changing from default permalinks break images

Viewing 1 replies (of 1 total)
  • 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:
    http://www.fasterbarnacle.com/images/barnaclebannerSmall.jpg

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘changing from default permalinks break images’ is closed to new replies.