WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Parent-page Header different from sub-page header (4 posts)

  1. aaanorton
    Member
    Posted 5 years ago #

    Hi.

    I've added a simple logo with a rollover effect in my header. It seems to be working:
    http://www.slashdigi.com/

    This is a brand new site and none of the pages or content mean anything. I'm just experimenting for now with different page arrangements. The problem is that only Parent pages display my logo. All sub-pages (ie: Pricing or a post's page) do not.
    I do not know this stuff at all, but am figuring it out as I go. I don't see any mention of different headers for sub-pages in any of my theme's .php or .css files.
    Can anyone tell me what I am doing wrong?

    Thanks!

  2. aaanorton
    Member
    Posted 5 years ago #

    So I've tried everything I can think of. Admittedly, that's not much, but I can't get this resolved. All of my sub-pages (Pricing) do not show my logo. Can anyone help me out here?

    Thanks.

  3. aaanorton
    Member
    Posted 5 years ago #

    OK, so I got rid of my rollover code and now a static logo displays properly on all pages. Yay.
    But now I need to fix the rollover. Here's what I had in header.php:

    <a href="http://www.slashdigi.com" id="rollover"><span>slashdigi</span></a>
    <style type="text/css" media="screen">
    <!--
    a#rollover { background-image:url(../logo.gif); height: 43px; width:225px; display:block; }
    a#rollover span { display:none; }
    a#rollover:hover { background-image:url(../logoon.gif); }
    -->
    </style>

    Any idea what is wrong with this?

    Thanks.

  4. aaanorton
    Member
    Posted 5 years ago #

    Solved it!
    I had my image URL in wrong. I changed:
    a#rollover { background-image:url(../logo.gif);

    to:
    a#rollover { background-image:url(../../../logo.gif);

    Duh. Well that was fun.

Topic Closed

This topic has been closed to new replies.

About this Topic