• apsey

    (@apsey)


    Greetings and thanks!

    Was using Kubric before upgrading and had added a “title=” so a hover on my header graphic would say “Go Home” or whatever.

    Now, with WP 1.5, the “img” has moved and I can’t seem to figure out the syntax needed to do the same thing on the new install.

    TIA for any help here. I think the “title=” is important as a navigation aid. Please suggest the file to edit (assuming “header.php”) and syntax if you’d be so kind.

    There have been changes now that themes are supported and I’m a wee lost.

    Using WP 1.5. https://apsey.org/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Avenir

    (@avenir)

    Add it to <div id="header">. That should work.

    Thread Starter apsey

    (@apsey)

    Thank you. Reply most appreciated sir.

    Not sure how, where, or syntax when working within header.php. Sorry!

    victr9

    (@victr9)

    If you open header.php in the Kubrick theme folder, you want to look for the tag <div id=”header>. Replace it with <div id=”header” title=”My Weblog (or whatever you want)”>. You can customize the title to what you want, that part is pretty self explanatory.

    Thread Starter apsey

    (@apsey)

    Oh, you misunderstand. I do not speak of the blog title. I speak of the balloon hover pop-up tag (similar to the way IE (incorrectly) handles and displays the “alt=” when you hover an image).

    I no longer use the Kubric Theme once used in WP 1.2. When I switched to WP 1.5 its default is now the Kubric theme and there has been a big change in the way such things as header images are handled. Below is a quote lifted from the file header.php:

    /* BEGIN IMAGE CSS */
    /* To accommodate differing install paths of WordPress, images are referred only here, and not in the wp-layout.css file. If you prefer to use only CSS for colors and what not, then go right ahead and delete the following lines, and the image files. */

    The line of code I find confusing reads:

    #header { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickheader.jpg") no-repeat bottom center; }

    I don’t know how to add the “title=” tag to that line or if it’s even the correct place.

    Minna

    (@minna)

    There isn’t a “tangible” image to add a title to because the image is put on the background. That’s why you should try out what Avenir and victr9 suggested. Or did you try but it didn’t work?

    You can’t add title attributes to the stylesheet (which is what that code snippet above is), only to HTML tags

    Thread Starter apsey

    (@apsey)

    Aha! Your comment there isn’t a “Tangible,” just a background image helped very much and it’s now working fine.

    No, I hadn’t tried what Avenir and victr9 suggested thinking there was a misunderstanding. My sincere apologies to both because their suggestion was exactly correct.

    Had I been more experienced in this forum, I’m sure being familiar with the citizenry here would have opened my eyes. Many thanks to all three of you. WordPress and this great forum rock!

    Minna

    (@minna)

    I’m glad it worked (it was interesting to see that you can title a div) and no need for apologies ??

    Images as backgrounds may get confusing, but that’s the beauty of CSS if you start doing themes and changing themes. If you had an <img> tag inside your content, html, you would have to have the same header image for each colour scheme (to put it simply, of course you could do PHP trickery, no the point though).

    Thread Starter apsey

    (@apsey)

    Minna, your willingness to have a look and comment was wonderful. Thanks. Doubting you’d return to read my commented reply, I reproduce it here:

    Not sure you’ll see this Minna, but I’m honored by your visit and your comment, and in awe of all those in the forum so willing to help folks using WordPress in the same free and open spirit as those who gave birth to the wonderful open source program driving this site: WordPress itself.

    What a wonderful world we’d live in if there were lots more of that sort of thing happening. Thank you for stopping by.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘“Title” hover for header img problem’ is closed to new replies.