WordPress.org

Ready to get started?Download WordPress

Forums

Logo not showing on Pages but Not showing up in categories (3 posts)

  1. snaushads
    Member
    Posted 3 years ago #

    Hi,

    This is my first website, and the first one with WP.
    It was a cakewalk installing the Setup, and Plugins also.
    THE ISSUE:LOGO NOT DISPLAYING ON CATEGORIES, but DISPLAYING ONLY on PAGES.
    This similar issue was faced earlier also ON Localhost as well as Webserver. i just Deleted the old setup and reinstalled..alongwith a FResh database.
    but now also it doesnt work.
    You can check it on http://www.loobox.com
    Note:I dont have any PHP, CSS knowledge, any assistance would be appreciated.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Don't use relative urls in image paths.

    <img class="logoimg" title="<?php bloginfo('name');?>" alt="<?php bloginfo('name');?>" src="wp-content/uploads/logo.png">

    should be changed to:

    <img class="logoimg" title="<?php bloginfo('name');?>" alt="<?php bloginfo('name');?>" src="<?php bloginfo('url');?>/wp-content/uploads/logo.png">

    in header.php.

  3. snaushads
    Member
    Posted 3 years ago #

    @esmi, Thanks for the Info.
    But i found the Cause a little Different, there was no error in the Template.

    The Cause was PERMALINKS i had made it to /%postname%

    On HomePage and other "Pages" it gave links for Logo as
    wp-content/uploads/logo.png
    However It Gave This link when Clicking On Categories: wp-content/uploads/categories/logo.png, Thus causing the Logo not to be displayed.

    I Changed the Permalinks to "Default" now its ok, but i have to work with "Broken Links" so that i can make Custom Permalinks.

Topic Closed

This topic has been closed to new replies.

About this Topic