• The more tage adds a page location to the href, with a #. Where can I modify this? When a user clicks More… I want the entry to display, but I don’t want the page automatically scrolled for them, make sense?

    I just can’t find where the More href is built?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You’ll have to modify this in template-functions-post.php. Look for the function get_the_content() (around line 100), and in this look for:

    $output .= ' <a href="'. get_permalink() . "#more-$id\">$more_link_text</a>";

    Change it to:

    $output .= ' <a href="'. get_permalink() . "\">$more_link_text</a>";

    Thread Starter Lucid

    (@lucid)

    Ahh, gotch, worked great..well almost, instead of “”, I needed to use “/” for proper parsing.

    Also, is there a location for the entry heading, I would actuallylike it to scroll to the heading, is that possible?

    Thanks! Much appreciated!

    Yeah, I noticed the forum stripped those out on a re-edit. I’ve edited them back in for anyone else who may need it…

    RE: entry heading link

    That would be only a little more work, in that you’ll need to provide a unique id to each entry’s title div or <h> tag in your index.php template, something like:

    id="head-<?php the_ID(); ?>"

    Then pass that along to the more link you just changed:

    $output .= ' <a href="'. get_permalink() . "#head-$id\">$more_link_text</a>";

    Thread Starter Lucid

    (@lucid)

    I see…thanks! I may work on that soon, but for now, I’m glad it re-load to the top of the page!

    getting happier with the way everything is working:
    http://www.stirman.net

    Thanks Kaf!

    I think that would make a great addition to the standard wp package, that was a great idea 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘<!–more–> customization’ is closed to new replies.