• Mikeyvdb

    (@mikeyvdb)


    I want to remove the link from the authors name. When it says posted by [name], you can click on the name and get all the posts from that author. How do i remove this, so it’s only text?

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

    (@alchymyth)

    wht theme are you using?

    do you want to change this in index and archive pages and single posts?

    Thread Starter Mikeyvdb

    (@mikeyvdb)

    I’m using a custom theme. And i want to remove it on single pages :).

    Michael

    (@alchymyth)

    custom as in
    – ‘self-made’ ?
    – or commercial?
    – or build for you by somebody?

    in either case, you need to locate the code for the author output in the single.php template.

    most author related functions have the word ‘author’ in the function call.

    replace what you find with the_author()
    http://codex.wordpress.org/Function_Reference/the_author

    you can also paste the full code of single.php into a http://pastebin.com/ and post the link to it here; how-to: http://codex.wordpress.org/Forum_Welcome#Posting_Code

    if you are using a commercial theme, please contact the theme’s seller for support.

    Thread Starter Mikeyvdb

    (@mikeyvdb)

    Michael

    (@alchymyth)

    try and find this function in functions.php of your theme:

    function twentyten_posted_on() {

    then edit this a few lines further down:

    sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',

    change to:

    sprintf( '<span class="author vcard">%3s</span>',

    Thread Starter Mikeyvdb

    (@mikeyvdb)

    That didn’t work. This is what i have in my functions.php

    function twentyten_posted_on() {
    printf( __( ‘ <span class=”meta-sep”>door %3$s</span>’, ‘twentyten’ ),
    ‘meta-prep meta-prep-author’,
    sprintf( ‘<span class=”entry-date”>%3$s</span>‘,
    get_permalink(),
    esc_attr( get_the_time() ),
    get_the_date()
    ),`

    Michael

    (@alchymyth)

    the code I was referring to would be in the line after what you just posted.

    if this is not there, then I can’t see any other reference to ‘posted by [name]’ in the posted single.php code;

    is that appearing before or after the post content?

    if you can’t post a link to your site, can you provide a screenshot of the problem?

    Thread Starter Mikeyvdb

    (@mikeyvdb)

    Link to the site: http://www.ngnl.nl

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

The topic ‘Remove author link’ is closed to new replies.