WordPress.org

Ready to get started?Download WordPress

Forums

Header image only appearing on home page (5 posts)

  1. fbbr
    Member
    Posted 1 year ago #

    I have recently converted my html site to wordpress.

    The header image shows up fine on the home page '/images/logo.png' but when I click on the other pages it doesn't show up and the path changes to 'images/logo.png'

    I have changed the path in the header.php to '/images/logo.png' but it still only shows up on the home page.

    Has anyone encountered this problem?

    http://bet-types.com.au/

  2. alchymyth
    Forum Moderator
    Posted 1 year ago #

    try to use:

    <img src="<?php bloginfo('url'); ?>/images/bet-types-logo2.png" alt="bet-types-explained-in-detail" style="float:left;" height="40" width="145">

    or (which might fail if you go further down into 'sub'-folders):

    <img src="../images/bet-types-logo2.png" alt="bet-types-explained-in-detail" style="float:left;" height="40" width="145">

  3. fbbr
    Member
    Posted 1 year ago #

    Thanks for the quick reply alchymyth. Unfortunately no luck with either of those 2 suggestions.

    They still return the path 'images/logo.png' instead of '/images/logo.png/ on pages other than the home page.

  4. alchymyth
    Forum Moderator
    Posted 1 year ago #

    They still return the path 'images/logo.png'

    unlikely;
    did you refresh the browser, or clear the browser cache?

    have you kept any edited code in your site right now?

  5. fbbr
    Member
    Posted 1 year ago #

    I tried both of those things.

    The edited code is live right now:

    <?php do_atomic( 'before_header' ); // oxygen_before_header ?>

    <div id="header">
    <img src="<?php bloginfo('url'); ?>/images/bet-types-logo2.png" alt="bet-types-explained-in-detail" style="float:left;" height="40" width="145">
    <?php do_atomic( 'open_header' ); // oxygen_open_header ?>

Topic Closed

This topic has been closed to new replies.

About this Topic