WordPress.org

Ready to get started?Download WordPress

Forums

Hover over Topic title and See title (16 posts)

  1. Brain916
    Member
    Posted 7 years ago #

    Hello
    I was wondering how to do this:

    When I write a blog, and I hover over the topic (at topic) how do I add the title:
    for example - http://www.hypebeast.com/2006/12/tens-by-the-hundreds-preview/

    But not say Permanent

  2. moshu
    Member
    Posted 7 years ago #

    Find the <h1 class entrytitle... line in your index.php and edit it.

    BTW, It is semantically wrong to have more than one h1 tags in a page!

  3. Brain916
    Member
    Posted 7 years ago #

    what if it is the main blog?
    And how many h2 per page?

    Also when I edit it, what do I drop in, because I want this to automatically be done to every topic.

  4. moshu
    Member
    Posted 7 years ago #

    1. It doesn't really matter whether "main" or not. On a page/file there should be only one h1. The rest of the heading tags (h2, h3, h4 etc.) can be in unlimited number.
    In any well-designed theme the blog title is h1; the post titles are h2. (in some themes the date preceeds the title, so the date is in h2...)
    2. Find the words "Permanent Link to" and delete them. It should be only once in the template file.

  5. Brain916
    Member
    Posted 7 years ago #

    ok
    but the thing is, when I hover over the link at my site http://www.sneakerfiles.com nothing happens,
    so what can I add to make this happen?

  6. moshu
    Member
    Posted 7 years ago #

    Well, your main/index page looks strange...
    You have categories as posts and real posts mixed. I can't really understand what's going on, sorry.

    As for the title being displayed when hover - when I checked it at the link you posted in your first post here: it was there. I am afraid you deleted MORE than I said.

  7. Brain916
    Member
    Posted 7 years ago #

    no,
    that is another website.
    I was showing a "example"

    by you saying Well, your main/index page looks strange...

    it is wrong, or just different?

  8. moshu
    Member
    Posted 7 years ago #

    1. Don't give misleading examples. All the time I though you are talking about THAT website.
    2. Give a real link if you want help with display/style/layout etc.

    3. If your index works for you... be happy. I just didn't understand while a title that seems to be a post, points to a category. Confusing.

  9. Brain916
    Member
    Posted 7 years ago #

    is that bad?

    and can you help with the second link, or no?

  10. moshu
    Member
    Posted 7 years ago #

    is that bad?
    What?

    I, probably, can if you post here the line that displays your post titles.
    (Sorry, I am not going to download that theme...)

  11. Brain916
    Member
    Posted 7 years ago #

    ahha I understand.

    You said:
    title that seems to be a post, points to a category. Confusing.
    and I said "is that bad?".

    but the post id is:
    <div class="ncol"><!-- Begin of the narrow column -->
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="post"><!-- Post Div-->
    <h1 id="post-<?php the_ID(); ?>">
    " rel="bookmark"><?php the_title(); ?>
    </h1>

  12. moshu
    Member
    Posted 7 years ago #

    Why is sooooo difficult to put two backticks around the code?
    The backtick usually is on the left top of the keyboard where the tilde [~] is.

  13. Brain916
    Member
    Posted 7 years ago #

    huh?
    I do not understand.

  14. moshu
    Member
    Posted 7 years ago #

    Scroll down and read...

  15. Brain916
    Member
    Posted 7 years ago #

    I am not following you

  16. moshu
    Member
    Posted 7 years ago #

    I cannot read your code because as you typed it - gets rendered.
    To display code correctly here in the forum, you have to put "backticks" around it. It says (and it's shown) below the text input area on this page. Scroll down and read. What is so complicated???
    Backtick is usually on the same key where the "tilde" [~} is; left top on most keyboards.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags