WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Logo image not loading after Permalink Settings change (2 posts)

  1. bkuethen
    Member
    Posted 8 months ago #

    I just changed my permalink settings to
    http://localhost:8888/2013/08/sample-post/
    and the logo url is now adopting the new permalink structure.

    What's odd is the link is hard-coded and displayed correctly, but I get a 400 error and the image doesn't load.

    I'm using the following code:

    <a id="logo" href="<?php echo get_option('home'); ?>/">
       <img src="wp-content/themes/Theme-Name/images/logo.png" alt="">
    </a>

    But this is the url that is returned which errors out: http://localhost:8888/2013/07/blog-post-title/wp-content/themes/Theme-Name/images/logo.png

    It seems like this is an error, but maybe I'm doing something wrong in my code. It doesn't seem like the url should include the month, year, and post title before hitting the wp-content/...

    One thing to note is that the logo loads perfectly fine on the index page.

    Any help would be greatly appreciated.

  2. bkuethen
    Member
    Posted 8 months ago #

    Ha! Figured it out.

    I added the blog url home to the beginning of the img src which solved the problem.

    <img src="<?php echo get_option('home'); ?>/wp-content/themes/Revive-Responsive-2013/images/logo.png" alt="">

Reply

You must log in to post.

About this Topic